开发者

Make a Session never timeout OR redirect user to home page. ASP.NET

开发者 https://www.devze.com 2023-03-26 12:15 出处:网络
I am working on a asp.net 3.5 web applicationthe session time-out is set to 24 hours but a recycling of ASPNet process on the server is scheduled to trigger everyday at 3:00 A.M. is causing the sessio

I am working on a asp.net 3.5 web application the session time-out is set to 24 hours but a recycling of ASPNet process on the server is scheduled to trigger everyday at 3:00 A.M. is causing the session to timed out.

What is the best solution and how to achieve it :

My code should constantly listen to the server and show a message to user and redirect him to home page after session is expired?

OR

A solut开发者_运维知识库ion which makes a session to never timeout.

Thanks in advance BB


Make your session be stored in SQL server instead of in-memory. That way when the server recycles it wont affect the sessions at all.


Please refer this http://www.primaryobjects.com/CMS/Article86.aspx

0

精彩评论

暂无评论...
验证码 换一张
取 消