shushu has asked for the wisdom of the Perl Monks concerning the following question:
Instead of seeing two different Session IDs, before and after, I got the same Session ID. I believe that this is not for the reason it seems - that the Abandon is done before the execution, or something else. I believe this is because the Session object does not change in the server, and all the Abandon does is sending a new Session ID in the next request.<HTML> <HEAD> </HEAD> <BODY> <pre> <% use strict; use Data::Dumper; print "<br>Session ID before Abandon:" . $Session->{S +essionID} . "<br>"; $Session->Abandon; print "Session ID after Abandon:" . $Session->{Sessio +nID} . "<br>"; %> </pre> </BODY> </HTML>
<HTML> <script> function open_window (URL) { window.open(URL); } function show_session_id (URL) { alert(document.cookie); } </script> <HEAD> </HEAD> <BODY> <pre> <% use strict; use Data::Dumper; print "<br>Session ID before Abandon:" . $Session->{S +essionID} . "<br>"; $Session->Abandon; print "Session ID after Abandon:" . $Session->{Sessio +nID} . "<br>"; %> </pre> <BR> <BUTTON onclick=open_window('test.asp')>Open new window</butto +n> <BUTTON onclick=show_session_id()>Show Session ID</button> </BODY> </HTML>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: New Session for new Window (or: Session ID vs. Process ID...)
by JayBonci (Curate) on Feb 26, 2003 at 07:14 UTC | |
by shushu (Scribe) on Feb 26, 2003 at 07:51 UTC | |
by JayBonci (Curate) on Feb 26, 2003 at 08:00 UTC | |
by shushu (Scribe) on Feb 26, 2003 at 08:13 UTC | |
by JayBonci (Curate) on Feb 26, 2003 at 08:43 UTC | |
| |
|
Re: New Session for new Window (or: Session ID vs. Process ID...)
by perrin (Chancellor) on Feb 26, 2003 at 15:47 UTC | |
by pavan12s (Initiate) on Mar 30, 2009 at 11:19 UTC |