Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Transfering session to a new window
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Transfering session to a new window

 Post Reply Post Reply Page  12>
Author
wwwscripts View Drop Down
Newbie
Newbie
Avatar

Joined: 09 May 2003
Location: United States
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote wwwscripts Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
ultramods View Drop Down
Groupie
Groupie
Avatar

Joined: 08 January 2003
Location: Scotland
Status: Offline
Points: 146
Post Options Post Options   Thanks (0) Thanks(0)   Quote ultramods Quote  Post ReplyReply Direct Link To This Post Posted: 05 June 2003 at 4:11am
Can you give a bit more details about what your are actually going to be doing?
Back to Top
wwwscripts View Drop Down
Newbie
Newbie
Avatar

Joined: 09 May 2003
Location: United States
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote wwwscripts Quote  Post ReplyReply Direct Link To This Post Posted: 05 June 2003 at 4:25am
I just got it. If you are using Window.Open the session does pass through....
Back to Top
dbtest View Drop Down
Newbie
Newbie


Joined: 26 June 2003
Location: United States
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote dbtest Quote  Post ReplyReply Direct Link To This Post Posted: 26 June 2003 at 4:16pm
I have the same question, could you tell me how you did it?
Thanks
Michael
Back to Top
ljamal View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 16 April 2003
Status: Offline
Points: 888
Post Options Post Options   Thanks (0) Thanks(0)   Quote ljamal Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
wwwscripts View Drop Down
Newbie
Newbie
Avatar

Joined: 09 May 2003
Location: United States
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote wwwscripts Quote  Post ReplyReply Direct Link To This Post 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.

Back to Top
MorningZ View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 May 2002
Location: United States
Status: Offline
Points: 1793
Post Options Post Options   Thanks (0) Thanks(0)   Quote MorningZ Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
dbtest View Drop Down
Newbie
Newbie


Joined: 26 June 2003
Location: United States
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote dbtest Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
 Post Reply Post Reply Page  12>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.