implementing session in python

Here is the way to implement sessions .

You can genearate a random number using a rand module in python and then

keep on passing with your links like 5.cgi?q=2345345 and insert it into

database when it is generated and then at the top of each script check whether

it is that number or not.

if not equal then expired otherwise its okay………

But there is drawback you can visit previous pages by backspace in br

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: