Article ID: 182891 - Last Review: July 28, 2005 - Revision: 5.1 Session ID does not persist in Active Server PagesThis article was previously published under Q182891 SUMMARY 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. MORE INFORMATION 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: If the value changes every time the page is refreshed, then the session is not being maintained. Note Because Active Server Pages keeps track of sessions with cookies, the browser must be configured to receive cookies. REFERENCES
For more information, click the following article numbers
to view the articles
in the Microsoft Knowledge Base:
172864
(http://support.microsoft.com/kb/172864/
)
ASP Pages
Fail on Access to Session and Application Objects
178037
(http://support.microsoft.com/kb/178037/EN-US/
)
PRB: Session Variables Lost When ASP is Located in Frameset
281298
(http://support.microsoft.com/kb/281298/EN-US/
)
PRB: Session Variables Do Not Persist When Application Contains Empty Global.asa
| Article Translations
|
Back to the top
