Article ID: 178037 - Last Review: June 24, 2004 - Revision: 4.1 PRB: Session Variables Are Lost When ASP Is Located in FramesetThis article was previously published under Q178037 SYMPTOMS
Session variables that are defined in an Active Server Pages (ASP) page are empty when you attempt to access the values from other ASP pages within the frameset.
CAUSE
Internet Explorer 4.x and 5 cannot host the different frames of a frameset in the same process. Because ASP sessions are dependent on a Cookie that resides in the memory of the hosted process, different processes result in different Session Cookies and, therefore, different Sessions.
RESOLUTION
If your application must support Internet Explorer 4.x or Internet Explorer 5, then you should replace Session variables with Cookies. Ensure that the Cookies have an expiration date. This will result in the Cookie being written to disk. Regardless of which process the frame is hosted in, all frames will gather the Cookie information from the same location on disk. For example, replace the following code NOTE: This behavior has been resolved with Internet Explorer 5.5. REFERENCESFor additional information, click the article number below
to view the article in the Microsoft Knowledge Base:
196383
(http://support.microsoft.com/kb/196383/EN-US/
)
FIX: Windows Opened by Script Lose Authentication or Session
APPLIES TO
| Article Translations
|
Back to the top
