Click here to Skip to main content
15,891,204 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I am using Inproc session in my web application, is it possible to increase session time out without affecting the existing session. If I will change the timeout in web confing all session will automatically expire. Is there is any way to increasing the session timeout without affecting the session.
Posted

1 solution

Try setting it in code

Session.Timeout = 30;

https://msdn.microsoft.com/en-us/library/ms525473(v=vs.90).aspx[^]
 
Share this answer
 
Comments
MauryaArunKumar 8-May-15 6:20am    
As soon as I increase the time, other existing session will be expired, how I do it so that my existing session will not get expired.
F-ES Sitecore 8-May-15 7:03am    
I just tried it and it works, the session timeout is increased and all existing sessions are kept. Did you actually try the code? Or are you just assuming it's not going to work?
Abhishek Burrnwal 16-May-16 7:38am    
Session.Timeout = 30; this is not working

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900