I'm trying to understand your questions...i don't know what you mean by "refresh", but when you want to update the variable stored in the Session. You have to reassign them. for example. you have this:
Session("Test" = test
everything you write out Session("Test" it would print out test for the duration of the Session.
If you want to changed Session("Test"
then you have to do:
Session("Test" = test1
That is the only way to modify the Session variable.
A session variable has a default lifespan of 20 minutes --
However, if a user is in my site for longer than that, and has permission to be there (I check their password on every page), then I want them to be able to stay -- without having to log back in
I don't want to extend the life of the variable, though, because if they leave without logging out, then I don't want that variable hanging around any longer than that.
What I guess the question is is how to refresh the lifespan of a session variable to reset that 20 minute clock that starts running when I create it.
I may be wrong, but it's my understanding that the 20 minutes (or whatever it's set at) starts counting at the last visit to the server. So if you refresh your page or go to another page in the same web application, the 20 minutes starts over again.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.