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

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jarmo

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

    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.


  • David Dorward

    #2
    Re: window.open(), can I get new session?

    Jarmo wrote:
    [color=blue]
    > 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?[/color]

    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).

    --
    David Dorward <http://blog.dorward.me .uk/> <http://dorward.me.uk/>
    Home is where the ~/.bashrc is

    Comment

    Working...