| Author |
Topic Search Topic Options
|
wwwscripts
Newbie
Joined: 09 May 2003
Location: United States
Status: Offline
Points: 11
|
Post Options
Thanks(0)
Quote Reply
Topic: Transfering session to a new window Posted: 04 June 2003 at 7:07pm |
Is it possible to transfer session variable to a new window, without doing a querystring. I am trying to open a popup window, from the main window transfer the the session value into the popup window.
Thanks,
Shrini
|
 |
ultramods
Groupie
Joined: 08 January 2003
Location: Scotland
Status: Offline
Points: 146
|
Post Options
Thanks(0)
Quote Reply
Posted: 05 June 2003 at 4:11am |
|
Can you give a bit more details about what your are actually going to be doing?
|
 |
wwwscripts
Newbie
Joined: 09 May 2003
Location: United States
Status: Offline
Points: 11
|
Post Options
Thanks(0)
Quote Reply
Posted: 05 June 2003 at 4:25am |
|
I just got it. If you are using Window.Open the session does pass through....
|
 |
dbtest
Newbie
Joined: 26 June 2003
Location: United States
Status: Offline
Points: 3
|
Post Options
Thanks(0)
Quote Reply
Posted: 26 June 2003 at 4:16pm |
|
I have the same question, could you tell me how you did it?
Thanks
Michael
|
 |
ljamal
Mod Builder Group
Joined: 16 April 2003
Status: Offline
Points: 888
|
Post Options
Thanks(0)
Quote Reply
Posted: 26 June 2003 at 5:19pm |
|
As long as one browser window remains active and open the session is still open and can be called from any browser window.
|
|
|
 |
wwwscripts
Newbie
Joined: 09 May 2003
Location: United States
Status: Offline
Points: 11
|
Post Options
Thanks(0)
Quote Reply
Posted: 26 June 2003 at 6:00pm |
Actually it also depends on how you open the window. There are certain ways in Javascript that will kill the session.
|
 |
MorningZ
Senior Member
Joined: 06 May 2002
Location: United States
Status: Offline
Points: 1793
|
Post Options
Thanks(0)
Quote Reply
Posted: 26 June 2003 at 8:44pm |
if the domains match, then the session sticks....
but if you change the domain, for instance
open http://thisdomain.com from a parent where its http://www.thisdomain.com , then the session will be lost
as long as they match, theres no way that session will get lost, javascript CANNOT kill server session/memory
|
|
Contribute to the working anarchy we fondly call the Internet
|
 |
dbtest
Newbie
Joined: 26 June 2003
Location: United States
Status: Offline
Points: 3
|
Post Options
Thanks(0)
Quote Reply
Posted: 27 June 2003 at 6:13am |
|
My problem is: I used window.open("xxx.jsp","",prop-variable) to open another jsp page, relative url, same domain, in the same folder. In the main page I set a session variable and the main page is open when the new window is up. The session variable is gone in the new window. It seems to me that the new window kill all the session variable from parent.
It will be great if someone can give me a hint how to pass the session variable to the window from window.open().
Thanks everyone.
Michael
|
 |