Session Timeout is not working
-
Hi, I have written in web.config for SessionTimeOut, but it is not working. It is always taking previous session even if after logout. Thanks in Advance
You should have posted the code/web.config part in your question. For your information, check the answers in the below link Session time out automatically in asp.net web application[^]
thatraja
**My Tip/Tricks
My Dad had a Heart Attack on this day so don't...
** -
Hi, I have written in web.config for SessionTimeOut, but it is not working. It is always taking previous session even if after logout. Thanks in Advance
-
Hi, I have written in web.config for SessionTimeOut, but it is not working. It is always taking previous session even if after logout. Thanks in Advance
Elena2006 wrote:
. It is always taking previous session even if after logout.
What code have you written during Log out. Try Session.Abandon() during logout. and in page load, you need to check the session value for null or not. If you are using Browser back / forward button to navigate you have to clear the cache from there.
Cheers ! Abhijit Jana | My Blog | @Twitter | Daily .Net Tips
-
Hi, I have written in web.config for SessionTimeOut, but it is not working. It is always taking previous session even if after logout. Thanks in Advance
Use Session.Abandon() method to clear session. write below code on your logout button's click method :
Session.Abandon(); Response.Redirect("default.aspx",false);
Manoranjan Sahoo View My Site
-
Hi, I have written in web.config for SessionTimeOut, but it is not working. It is always taking previous session even if after logout. Thanks in Advance
Session.Abandon(); Response.Redirect("Default.Aspx"); This can workj for you.
-
Hi, I have written in web.config for SessionTimeOut, but it is not working. It is always taking previous session even if after logout. Thanks in Advance