Sessions across browser instances?

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

    Sessions across browser instances?

    I've hit a problem with sessions.

    If I have a document relying on sessions which has a link target=_blank
    then the new window inherits the session from its parent (in IE).

    However, if I embed an instance of IE in a VBA form in Excel and click
    on the link, the new window doesn't inherit the session.

    I have no idea why this should happen at all since both instances of the
    browser have access to the same cookies.

    Can anyone tell me how to inherit a session like that? I've tried
    passing over $PHPSESSID without any success (PHPSESSID is set correctly,
    but $_SESSION is empty)

  • Andy Hassall

    #2
    Re: Sessions across browser instances?

    On Thu, 27 Nov 2003 12:40:59 +0000, Kevin Thorpe <kevin@pricetra k.com> wrote:
    [color=blue]
    >I've hit a problem with sessions.
    >
    >If I have a document relying on sessions which has a link target=_blank
    >then the new window inherits the session from its parent (in IE).
    >
    >However, if I embed an instance of IE in a VBA form in Excel and click
    >on the link, the new window doesn't inherit the session.
    >
    >I have no idea why this should happen at all since both instances of the
    >browser have access to the same cookies.
    >
    >Can anyone tell me how to inherit a session like that? I've tried
    >passing over $PHPSESSID without any success (PHPSESSID is set correctly,
    >but $_SESSION is empty)[/color]

    Use stored cookies (with a lifetime set) instead of session cookies, perhaps?



    --
    Andy Hassall (andy@andyh.co. uk) icq(5747695) (http://www.andyh.co.uk)
    Space: disk usage analysis tool (http://www.andyhsoftware.co.uk/space)

    Comment

    • Savut

      #3
      Re: Sessions across browser instances?

      use session_id()

      Savut

      "Kevin Thorpe" <kevin@pricetra k.com> wrote in message
      news:3fc5f09c$0 $27469$afc38c87 @news.easynet.c o.uk...[color=blue]
      > I've hit a problem with sessions.
      >
      > If I have a document relying on sessions which has a link target=_blank
      > then the new window inherits the session from its parent (in IE).
      >
      > However, if I embed an instance of IE in a VBA form in Excel and click
      > on the link, the new window doesn't inherit the session.
      >
      > I have no idea why this should happen at all since both instances of the
      > browser have access to the same cookies.
      >
      > Can anyone tell me how to inherit a session like that? I've tried
      > passing over $PHPSESSID without any success (PHPSESSID is set correctly,
      > but $_SESSION is empty)
      >[/color]


      Comment

      • Kevin Thorpe

        #4
        Re: Sessions across browser instances?

        Andy Hassall wrote:[color=blue]
        > On Thu, 27 Nov 2003 12:40:59 +0000, Kevin Thorpe <kevin@pricetra k.com> wrote:
        >
        >[color=green]
        >>I've hit a problem with sessions.
        >>
        >>If I have a document relying on sessions which has a link target=_blank
        >>then the new window inherits the session from its parent (in IE).
        >>
        >>However, if I embed an instance of IE in a VBA form in Excel and click
        >>on the link, the new window doesn't inherit the session.
        >>
        >>I have no idea why this should happen at all since both instances of the
        >>browser have access to the same cookies.
        >>
        >>Can anyone tell me how to inherit a session like that? I've tried
        >>passing over $PHPSESSID without any success (PHPSESSID is set correctly,
        >>but $_SESSION is empty)[/color]
        >
        >
        > Use stored cookies (with a lifetime set) instead of session cookies, perhaps?
        >
        > http://www.php.net/manual/en/functio...kie-params.php[/color]

        Yup, that'll probably work. I've found out that browsers spawned from an
        existing browser window all share the same data space including
        temporary cookies. However spawning a new browser from within a VBA
        embedded browser actually starts a new instance of the browser. As to
        why I guess I'll have to ask Billy Boy.


        Comment

        Working...