ASP Forms - Sessions
(Page 4 of 5 )
A good way to visualize a session is to think of opening a program. That would start your session. Then you work in it and close it. That would be the end of your session. A Session Object stores data about a user session, and can change settings for that user session. When you begin a session in ASP, it creates a cookie with information about the user. The information is available to all pages within the application. Types of data stored are typically the user's name and any preferences they may have. The session object is destroyed after the session is over.
Beginnings and Endings
As I said, sessions have a beginning and an ending. Look at these two nifty bulleted lists that outline their time line:
A session begins:
A session ends:
Setting the Session Timeout
You can change the amount of time before your session times out by using the Timeout property. Here is how that works:
<%
Session.Timeout=10
%>
Next: How to Store Sessions and Retrieve Them >>
More ASP Code Articles
More By James Payne