INFO: Session ID Does Not Persist in Active Server PagesID: Q182891
|
For efficiency Active Server Pages (ASP) maintains a session only when session variables are used. To keep track of a session, ASP sends a cookie to the client. This cookie contains the client's session ID and is used when requesting the session variable from the Web server. When session variables are used, the session is maintained until the session times out or is abandoned.
One way to see if a session is being maintained is to display the
SessionID. To do this, simply create an ASP page that contains the
following code:
<% Response.Write( Session.SessionID ) %>
For additional information, please see the following articles in the
Microsoft Knowledge Base:
Q172864 ASP Pages Fail on Access to Session and Application Objects
Q178037 PRB: Session Variables Lost When ASP is Located in Frameset
Additional query words:
Keywords : kbASP kbASPObj kbScript kbGrpASP
Version : WINDOWS:1.0; winnt:
Platform : WINDOWS winnt
Issue type : kbinfo
Last Reviewed: May 27, 1999