PDA

View Full Version : Life of Session variable?



webmulgor
September 9th, 2007, 04:46 AM
[ASP/MSAccess]
In my website it is set that session expires around 20min. Sometimes it become too irritating, when person is reading some article and then sending his comment in given txtfield. Because session expires and he is redirected to Relogin Page.

How 2 Avoid This Problem?

Can i store the session value in some hidden field, in the "comment FORM".

Or some any other way?


Thanks("Advance")

SteelLionPHP
September 9th, 2007, 02:44 PM
I guess your talking about PHP session variables...

You dont want the session timer to be longer?

Im thinking of two ways you can get around this then:
1)Have a prompt come up when the session expires

2)Renew the session by assigning the login to the session variable again when the user clicks a link - you could submit their login as a hidden form vaiable and then assign it to the session variable as well.

webmulgor
September 10th, 2007, 11:07 AM
though i was asking about ASP. Anyway i can extract the logic from ur reply.