Click here to Skip to main content
14,735,487 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have two issue... Please Check and Solve if possible...

1) i am using the session timeout with 5 minutes. but when user idle for 5 minutes,user not redirect to the login page automatically but when there is postback event occur and if it is idle for 5 minutes it redirect to login page.

i want that auto redirect to the login page after the time out.

2)Another problem is if it is on login page and become idle for 5 minutes on login page and when we refresh the page the error generate like select.connection property not initialized.....

Please Help Me on Two Issue.

1 solution

Try this...look at this code nd make changes, if u have till any issues kindly post it..

    <authentication mode="Forms">
          <forms timeout="50"/>
    <sessionstate timeout="60" />

<authentication mode="Forms">
		<forms loginUrl="Default.aspx" protection="All" timeout="60" name="" path="/" requireSSL="false" slidingExpiration="true" defaultUrl="Home/Default.aspx" cookieless="UseDeviceProfile" enableCrossAppRedirects="false">
[no name] 16-May-12 4:53am
it log out but not automatically. it redirect when postback occur.

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