ASP Session Timeout Property
The ASP Session.Timeout Property is used for setting or returning the amount of timeout interval for the session in the Application. The default timeout period is 20 minutes. The session will automatically end if the user does not refresh and not send any request for a page within a timeout period.
Syntax
Session.Timeout[=nMinutes]
Property Value :
- nMinutes: It specifies the number of minutes for which the session remains idle.
Example:
<% response.write("<p>") response.write("The initial Timeout is: " & Session.Timeout) response.write("</p>") Session.Timeout=35 response.write("<p>") response.write("Now the Timeout is set to now: " & Session.Timeout) response.write("</p>") %>
Output:
Initial Timeout is: 20 Now the Timeout is set to: 35