The thing to remember is that even though your session times out on the server end, the client end will not process anything until it's next request. At that time it will discover that it's session has expired and attempt to restart the session. A Response.
Redirect or even Server. Redirect call won't help with this What you need to do is to synchronize your server timeout with your client timeout, and have some client script in place to redirect the user to a "Timed Out" type page. I've written up an article with some sample code on how to do that here.
The thing to remember is that even though your session times out on the server end, the client end will not process anything until it's next request. At that time it will discover that it's session has expired and attempt to restart the session. A Response.
Redirect or even Server. Redirect call won't help with this. What you need to do is to synchronize your server timeout with your client timeout, and have some client script in place to redirect the user to a "Timed Out" type page.
I've written up an article with some sample code on how to do that here.
Q: So, what would the var cookie, first line of code look like.? var cookie = HttpContext.Current.Request. CookiesFormsAuthentication.FormsCookieName.
Thanks, this is what I needed. Just discovered answer myself a few moments ago. – developerdoug Jun 15 at 21:13.
In my asp.net web application, I'm using asp.net forms authentication with following configuration. After form authentication time out, I would like to redirect to a different page. For example to 'SessionTimedOut.
The answer given makes sense but the first line of code has me confused.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.