All sessions expire when system time changes. Why? How to solve it?
-
Hi, I have set a time-out value of 2 min. When the system time changes, all existing sessions get automatically expired. What will be the problem? How can we solve this? We cannot increase the time out value from 2 min. Session state mode is "InProc" (Not set anything in Web.Config. So it will be taking the default "InProc" mode. I assume so.) Thanks in advance for your help // Jahfer.
-
Hi, I have set a time-out value of 2 min. When the system time changes, all existing sessions get automatically expired. What will be the problem? How can we solve this? We cannot increase the time out value from 2 min. Session state mode is "InProc" (Not set anything in Web.Config. So it will be taking the default "InProc" mode. I assume so.) Thanks in advance for your help // Jahfer.
jahfer wrote:
When the system time changes, all existing sessions get automatically expired.
Who is changing the System Time? Are you taking about System Time or Server Time? Session is a server side cookie. The date change on the server will invalidate the session time and automatically reset the Session Object. If you are the one changing the server time then, don't do that. AFAIK, changing the local machine time will not affect the session object in the server.
Castle Rider
What if I freeze??? Don't forget to breath...
My: Website | Yahoo Group | Blog Spot
/xml>
-
jahfer wrote:
When the system time changes, all existing sessions get automatically expired.
Who is changing the System Time? Are you taking about System Time or Server Time? Session is a server side cookie. The date change on the server will invalidate the session time and automatically reset the Session Object. If you are the one changing the server time then, don't do that. AFAIK, changing the local machine time will not affect the session object in the server.
Castle Rider
What if I freeze??? Don't forget to breath...
My: Website | Yahoo Group | Blog Spot
/xml>
-
Hi, Thank you for your reply. Web server machine administrator will change the time of web server machine. Is there any way to keep the session alive even if the web server machine time changed? // Jahfer.
You cannot keep it alive no matter how much timeout you set. Tell me one thing, what do you store in the Session? May be I could give you a workaround? And why does the Administrator keeps changing the time in the Web Server?
Castle Rider
What if I freeze??? Don't forget to breath...
My: Website | Yahoo Group | Blog Spot
/xml>
-
Hi, Thank you for your reply. Web server machine administrator will change the time of web server machine. Is there any way to keep the session alive even if the web server machine time changed? // Jahfer.
You could consider using Cache for such kind of issue.
Anurag Gandhi.
http://www.gandhisoft.com
Life is a computer program and every one is the programmer of his own life.