Skip to content
Related Articles

Related Articles

ASP Session Timeout Property
  • Last Updated : 01 Feb, 2021
GeeksforGeeks - Summer Carnival Banner

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

Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.

My Personal Notes arrow_drop_up
Recommended Articles
Page :