Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > ASP.NET Session ID

Reply
Thread Tools

ASP.NET Session ID

 
 
Erik
Guest
Posts: n/a
 
      05-23-2006
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
 
Reply With Quote
 
 
 
 
Bob Barrows [MVP]
Guest
Posts: n/a
 
      05-23-2006
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.


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Session Timeout problems-web.confg session state and IIS session s =?Utf-8?B?Um9iSEs=?= ASP .Net 4 04-11-2007 04:52 PM
Unable to serialize the session state. Please note that non-serializable objects or MarshalByRef objects are not permitted when session state mode is 'StateServer' or 'SQLServer'. Mike Larkin ASP .Net 1 05-23-2005 12:33 PM
Session State - What does it take to establish one single ASP.NET session per "browser session" Jeff Smythe ASP .Net 3 01-02-2004 04:10 AM
How can I "know" the difference between a session timed out and a session that did session.abort? Jazzis ASP General 2 09-23-2003 07:16 AM
Which is faster? Dim dv As New DataView(session("myDataTable")) or CType(session("myDataTable")) Andreas Klemt ASP .Net 1 07-23-2003 12:18 AM



Advertisments