Click here to Skip to main content
15,891,033 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am facing problem with session.

My doubt is, if session expires the control automatically goes 'Login' page or we need to check manually in page events?

If redirects automatically in my project it's not happening.

I added in web.config as follows,

MSIL
<sessionState
mode="InProc"
stateConnectionString="tcpip=127.0.0.1:42424"
sqlConnectionString="Data Source=ashishcomp;User ID=sa;Password=sa"
cookieless="false"
timeout="20"
/>
Posted
Updated 6-Jan-11 6:14am
v2

1 solution

 
Share this answer
 
Comments
Rajesh Kumar Chekuri 6-Jan-11 12:43pm    
Thanks.....have a great day...
Sandeep Mewara 6-Jan-11 14:46pm    
Juat an add on to it, if you have form-authentication implemented then you will be taken back to login page once there is a timeout.

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