Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Re: Re: Re: Re: Re: New Session for new Window (or: Session ID vs. Process ID...)

by JayBonci (Curate)
on Feb 26, 2003 at 08:43 UTC ( #238708=note: print w/replies, xml ) Need Help??

in reply to Re: Re: Re: Re: New Session for new Window (or: Session ID vs. Process ID...)
in thread New Session for new Window (or: Session ID vs. Process ID...)

There's not really any way to tell what windows are separate from each other. HTTP is a stateless protocol, and there's no way to tell from what window something was spawned. Netscape, Opera, IE, lynx et al all behave differently with regards to cookies and windows. There's really no good way to tell.

If I may ask, why would you want the Session to be different for each window?

  • Comment on Re: Re: Re: Re: Re: New Session for new Window (or: Session ID vs. Process ID...)

Replies are listed 'Best First'.
New Session for new Window...
by shushu (Scribe) on Feb 26, 2003 at 09:05 UTC
    I am the team leader of a product called FireBall-1, which is an internal CheckPoint tool for QA.
    The report this tool is creating is an ASP built HTML files, with a complicated navigation within the report.
    For example - if I use a loop in FireBall, I will see a loop in the report, and iterations of it.
    The bottom line - we use the session to follow where the user is in the report.
    But the user can open more then one report from the same IE window, and start his navigation. In this point I want him to get a session/cookie per window, in this is my current problem.

      Why not track it by GET data from where he is in the application? It might be simpler to pass along that information in the link.


      If they jump out of that loop by opening a new window (or head to a spot where they couldn't possibly have gone to from the current report, create another session from there and change around all of the links (session=206, etc).

        What is not clear to me is "create another session from there ..." - if I can create another session from any place, I should not have any problem.
        From the example I gave it is clear that only one session exist, so in any case, even with your solution, I will still have one working session.
        Am I wrong ?

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://238708]
[Cow1337killr]: (Oops. HTML paragraph markup not needed.)
[stevieb]: Cow1337killr yeah, you're probably right. I have communicated to the author directly, and here on his threads. It's a tremenous setup. With Devel::Camelcadedb , you get full perl debug support too
[stevieb]: so now I can use CLion with the Perl plugin and have a single IDE for Perl/C/C++. It'll make writing C/XS dists much easier
[stevieb]: Python too, but I leave work at work

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (12)
As of 2017-02-20 21:08 GMT
Find Nodes?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?

    Results (302 votes). Check out past polls.