we’re in need to stop the user session in an ASP.NET site after some time(say 20 mins).
We know we can use a timer and code every page to expire on the timer tick, but we’re searching a faster way, maybe through an IIS configuration?
Is there a built in way to do such things?
We’re using ASP.NET 2.0, Framework 3.5, IIS 6, c#.
TY.
ADDON: I think it’s better to elaborate a bit on the question…
We want to achieve something like a “demo” mode, where a user can use the site in full mode for a bounch of minutes, then the site will be inoperable due to the elapsed “demo” time.
Hope that’s clearer.
There’s a few ways to do this, for example web.config and IIS. This article explains how to use various methods for changing the timeout value.
http://justgeeks.blogspot.com/2008/07/aspnet-session-timeouts.html