OffSight
Website and Graphic Design
01785 43 1000
Home : Tutorials

Increase The Login Timeout Period In An Asp Net Application


Added by David Coleman on 18 March 2011

ASP.net Forms Timeout

The ASP.net forms authentication system has a separate timeout setting from your web application's session settings.It's very easy to change the length of time that a user will be logged in for without automatically logging them out due to inactivity. By default the setting is 30 minutes. You can specify your own length of time in minutes by just adding or editing the following snippet into your web.config file:

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

The above example will increase the login period to an hour.

Setting this property to a very high number will effectively appear to leave users logged in indefinitely.

Add a comment

Your name:

Your comment:



There are no comments yet

Share This Page


What Do Our Customers Think?
"Our new website was created by Offsight and we have been extremely happy with the results. The new website looks more modern and has better admin facilities so the ease of entering information ‘behind the scenes’ is alot better. Everyone at Offsight couldn’t be more helpful (we were helped by Stu) who was brilliant and nothing was ever too much trouble, my constant phone calls when I was unsure as to how to enter something were always dealt with promptly and no new dilemma was a problem for him. They are continuing to give support on our website and I know that after a quick email or phone call they will be sorting out whatever needs to be done. A great service for a really reasonable fee."

Tracey, Sheila Harper Ltd
Latest OffSight News
new website cookie law comes into effect on 26th may New website 'cookie law' comes into effect on 26th May What is the new law? The new law states that (to paraphrase), “all websites in the EU must seek consent to store cookies that are not essential ... offsight moves to new larger stafford office OffSight moves to new, larger Stafford office We're excited to tell you that OffSight has moved to Stafford into the Paul Reynolds Centre, above the Ashiana curry house opposite Halfords. Our new office is much larger than ... offsight delivers client a huge growth in online sales OffSight Delivers a Huge Growth in Online Sales to iWood Timber iWood, a company that Offsight works very closely with, has been featured on the front page of the business section in the Express and Star Newspaper! ... offsight invited to present at staffordshire university Matthew Nash and myself, David Coleman, were recently asked by Staffordshire University to give a presentation on Search Engine Optimisation to their business scheme members. The aim of the presentation was to introduce the business ...
Signup for our newsletter
Share this page