Click here to Skip to main content
14,242,790 members
Rate this:
Please Sign up or sign in to vote.
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.
Thankssss
Mitesh
Posted

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

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

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


<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">
				</forms>
		</authentication>
   
Comments
Mits Machhi 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, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100