web 2.0

ASP Session.TimeOut() - Session Object

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

ASP & Session.TimeOut()

.
.
.

Download this script.
Download

1 Star2 Stars3 Stars4 Stars5 Stars6 Stars7 Stars8 Stars9 Stars10 Stars (1 votes, average: 1.00 out of 10)
Loading ... Loading ...

Leave a Reply

You must be logged in to post a comment.