ASP Session.TimeOut() - Session Object Gets and sets the amount of time, in minutes, allowed between requests before the session-state provider terminates the session.
ShotDev Focus:
- The time-out period, in minutes.
Syntax
<% Session.TimeOut = Minute %>
Example
asp_session_timeout.asp
<% Option Explicit %> <html> <head> <title>ShotDev.Com Tutorial</title> </head> <body> <% Response.write ("SessionID = " & Session.SessionID() &"<br>") Session.TimeOut = 1 Session("SiteName") = "www.ShotDev.Com" Response.write Session("SiteName") & "<br><br>" Response.write ("Session TimeOut = " & Session.TimeOut &" Minute(s)") %> </body> </html>
Create a asp file and save to path root-path/myasp/
Run
http://localhost/myasp/asp_session_timeout.asp
Screenshot
.
.
.