<% If Request("DontFrame")<>1 Then Response.Redirect "/iissamples/sdk/asp/docs/SampFram.asp?ovfile=/iishelp/iis/htm/sdk/samp05f8.asp&srcfile=Applications/Timeout" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
The built-in <b>Session</b> object provides several methods and properties that you can use to manage an application session. This sample demonstrates the use of one of these, the <b>Timeout</b> property.</p>
<p>
ASP creates and maintains one <b>Session</b> object for each client browser connected to the server. The object holds session-state information, and it remains in memory until the connection is either properly terminated or inactive for a certain amount of time. You can set this by using the <b>Session.Timeout</b> property.</p>
<p>
This sample very simply sets the <b>Timeout</b> property of the session to 25 minutes. Once a client browser accesses this script, if 25 minutes elapse in which the browser makes no requests on the server, the session will be terminated, and the associated <b>Session</b> object will be destroyed.</p>