Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Browsers / Internet Explorer / November 2003



Tip: Looking for answers? Try searching our database.

Session is Lost during Window.Open()

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Shanmugavel - 24 Nov 2003 13:37 GMT
Hi,

I am using Windows 2000 SP4 and IE 6.1 SP1;

I am loosing the Web server session after I use Window.Open
() and close that Window.
(All session cookies are being deleted)

Preparation Steps:
1. Copy the start.asp, newwindow.asp and view.asp into a
folder and make it as a Virtual folder called "sessiontest"
2. Copy home.htm into C:\

Steps to reproduce "Session is Lost during Window.Open()"
Problem

1. Close all your IE Instances.
2. In "Windows Explorer" double click and run
the "home.htm" from C:\
3. From the Status Bar make sure that your zone is "My
Computer"
4. Click on the Hyper Link "Lost Session"
5. You will see "Value stored in session = This is sample
data" and a "New Window" button
6. click the "New Window" button
7. You will see "The session variable value has been
modified" in a new window
8. Close the new window.
9. Refresh the old window, by pressing the browser's
refresh button.
10. You will see "Value stored in session = "

Steps to Show the correct session behaviour

1. In a new browser instance type the
URL "http://localhost/sessiontest/start.asp" and hit enter
2. You will see "Value stored in session = This is sample
data" and a "New Window" button
3. click the "New Window" button
4. You will see "The session variable value has been
modified" in a new window
5. Close the new window.
6. Refresh the old window, by pressing the browser's
refresh button.
7. You will see "Value stored in session = Modified
session value"

Thanks,

Shanmugavel

CODE FOR Home.htm
=================

<HTML>
<HEAD>
    <TITLE>
        window.open() Closes Session
    </TITLE>
</HEAD>

<BODY>
        <A
HREF="http://localHost/sessiontest/start.asp"> Lost
Session </A> <br>
</BODY>
</HTML>

CODE FOR start.asp
==================

<%
    session("sampledata") = "This is sample data"
    response.redirect "view.asp"
%>

CODE FOR newwindow.asp
======================

<%
    session("sampledata") ="Modified session value"
%>
<html>
    The session variable value has been modified
</html>

CODE FOR view.asp
=================

<html>
    Value stored in session = <%=session("sampledata")%

    <br>
    <input type="button" onclick="window.open
('newwindow.asp')" value="New Window" /><br>
</html>
Mikko Noromaa - 24 Nov 2003 17:03 GMT
Hi,

> I am loosing the Web server session after I use Window.Open
> () and close that Window.

This looks very much like the issue I last year. See the following links:

http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=OhLa8axjCHA.258
4%40tkmsftngp12


http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=NjS%24Kz07CHA.2
768%40cpmsftngxa06


My findings suggested the problem occurred BECAUSE I was using a local HTML
file. When I used a real Web server, the problem went away. This is also
mentioned in Microsoft KB article Q300895 (see
http://support.microsoft.com/?id=300895). It seems like Microsoft hasn't
gotten around to fixing it yet...

--

Mikko Noromaa (mikkon@excelsql.com)
- SQL in Excel, check out ExcelSQL! - see http://www.excelsql.com -

> Hi,
>
[quoted text clipped - 92 lines]
> ('newwindow.asp')" value="New Window" /><br>
> </html>
Shanmugavel - 25 Nov 2003 04:19 GMT
Hi Mikko,

Thanks for sharing the experience.

Regards,

Shanmugavel.
Wei-Dong Xu [MSFT] - 25 Nov 2003 02:24 GMT
Hi Shanmugavel,

So far as I know, this is a bug of us in windows 2000. However, this issue has been fixed in the windows 2003.

Please feel free to let me know if you have any further questions.

Does this answer your question? Thank you for using Microsoft NewsGroup!

Wei-Dong Xu
Microsoft Product Support Services
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
Shanmugavel - 25 Nov 2003 04:15 GMT
Hi Wei-Dong,

Thanks for your prompt support. This concludes the issue.

Regards,
Shanmugavel
Wei-Dong Xu [MSFT] - 25 Nov 2003 05:45 GMT
Hi Shanmugavel,

Thank you for replying!

You are very welcome!

Thank you once more for using Microsoft NewsGroup!

Wei-Dong Xu
Microsoft Product Support Services
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.