For Programmers: Free Programming Magazines  


Home > Archive > ASP > May 2006 > ASP.NET Session ID









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author ASP.NET Session ID
Erik

2006-05-23, 7:56 am

Hi,

i'm using a script to open a Dialog window by window.open();
in order to transfer data i'm using the Session object from the child to the
parent.
The problem is that in IE6 when the child window is opened, the SESSION ID
of that window is different from the SESSION ID of the Parent window.
I would like to know why is that and if there is a way to fix it.

Best regrds,
Erik
Bob Barrows [MVP]

2006-05-23, 7:56 am

Erik wrote:
> Hi,
>
> i'm using a script to open a Dialog window by window.open();
> in order to transfer data i'm using the Session object from the child
> to the parent.
> The problem is that in IE6 when the child window is opened, the
> SESSION ID of that window is different from the SESSION ID of the
> Parent window.
> I would like to know why is that and if there is a way to fix it.
>

This is a classic asp group (see
microsoft.public.dotnet.framework.aspnet for asp.net questions) so I
tried to reproduce this using the classic asp page that appears below. I
was unsuccessful. The same session id appeared in both windows. My
suggestion would be to post a small repro (similar to the one I posted)
to the aspnet group, explaining which type of session state management
you are using: in-process or database.

<%
if len(session("test"))>0 then
Response.Write "session variable already has a value.<BR>"
else
Response.Write "setting session variable to ""a""<BR>"
session("test") = "a"
end if
%>
<HTML>
<BODY>
<div onclick = "window.open('sessiontest.asp')"
style="border:solid thin; cursor:hand"
>click me</div>


<%=session.SessionID%><BR>
<%=session("test")%>

</BODY>
</HTML>

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com