window.open(), can I get new session?

J

Jarmo

Using window.open(), the exec'd child window shares session information with
the parent. Is there a way in JavaScript to exec a new browser window that
does not share? Thanks.
 
D

David Dorward

Jarmo said:
Using window.open(), the exec'd child window shares session information
with the parent. Is there a way in JavaScript to exec a new browser
window that does not share?

That depends on how you implement sessions in the first place. If you base
them on Cookies - then no, not without destroying the previous session. If
you base them on URIs, then yes. Make sure you remove them session id
information from the URI when you generate the link to the popup. If you
use some other method for tracking sessions, then it depends on the method.
Whichever method you use, the JavaScript is rather irrelevant as you almost
certain can implement this server side. (BTW - popups are a bad design
decision 999 times in 1000).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top