Click here to Skip to main content
15,891,981 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
To increase the timeout I have written the following codes in we.config

XML
<membership defaultprovider="ProjectProvider" userisonlinetimewindow="720">
			<providers>
				<add name="ProjectProvider" type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" connectionstringname="ConnectionString" applicationname="MyApp" enablepasswordretrieval="true" enablepasswordreset="true" requiresquestionandanswer="true" requiresuniqueemail="true" passwordformat="Clear" maxinvalidpasswordattempts="5" passwordattemptwindow="10" minrequiredpasswordlength="5" minrequirednonalphanumericcharacters="0" />
			</providers>
</membership>


<rolemanager cacherolesincookie="true" enabled="true" defaultprovider="ProjectRoleProvider" cookietimeout="720">
			<providers>
				<add name="ProjectRoleProvider" type="System.Web.Security.SqlRoleProvider" connectionstringname="ConnectionString" applicationname="MyApp" />
			</providers>
		</rolemanager>
		<authentication mode="Forms">
			<forms defaultUrl="Default.aspx" loginUrl="Login.aspx" timeout="720">
			</forms>
		</authentication>



But, still it automatically logs out after 5-6 minuites. Someone please help me to disable this timeout feature.
Posted
Updated 22-Dec-12 21:13pm
v2
Comments
[no name] 23-Dec-12 3:21am    
what you actually want ?

1 solution

http://stackoverflow.com/questions/3839851/disable-auto-logout-feature-in-asp-net[^]

or in your code snippet write 99999 in place of 720.
 
Share this answer
 
v2
Comments
[no name] 23-Dec-12 3:21am    
My vote is 5
Abhishek Pant 23-Dec-12 3:32am    
thanks
Abdullah Al-Muzahid 23-Dec-12 6:55am    
this is not working. still it logs out after 5-6 minuits
Abhishek Pant 23-Dec-12 7:36am    
did you provided timeout anywhere else(other than this) in any page check that
Abdullah Al-Muzahid 23-Dec-12 7:38am    
no

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