Re: Global.asax Session_End
- From: Göran Andersson <guffa@xxxxxxxxx>
- Date: Thu, 08 Jan 2009 01:43:53 +0100
GregoryJ wrote:
Thanks for giving me this oversight even though I am in the wrong newsgroup. What you say makes sense.
Basically, I am evaluating the Session's state when I load my pages using a Cookie that holds some session related information.
Although I'm in the wrong place, can I ask one question about the Cookie.Expires method. If I set the Cookie to expire in 20 minutes,
Cookies with such a short expiration date doesn't work well. If the user is in a different time zone, the cookie will either last for hours or expire immediately.
what would be the best approach to keeping the session from expiring while someone is working in the application. My thought is that I'm going to reset the Expire minutes everytime a new page or transaction takes place. Good idea or bad?
Bad idea. Don't use the cookie expiration to keep track of the session timeout. Store the last request time in the cookie and set the expiration date to at least a day from now.
--
Göran Andersson
_____
http://www.guffa.com
.
- References:
- Global.asax Session_End
- From: GregoryJ
- Re: Global.asax Session_End
- From: Mark Rae [MVP]
- Re: Global.asax Session_End
- From: GregoryJ
- Global.asax Session_End
- Prev by Date: Re: Global.asax Session_End
- Next by Date: section
- Previous by thread: Re: Global.asax Session_End
- Next by thread: section
- Index(es):
Relevant Pages
|