By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,948 Members | 804 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,948 IT Pros & Developers. It's quick & easy.

Sessions across browser instances?

P: n/a
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)

Jul 17 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
On Thu, 27 Nov 2003 12:40:59 +0000, Kevin Thorpe <ke***@pricetrak.com> wrote:
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)


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

http://www.php.net/manual/en/functio...kie-params.php

--
Andy Hassall (an**@andyh.co.uk) icq(5747695) (http://www.andyh.co.uk)
Space: disk usage analysis tool (http://www.andyhsoftware.co.uk/space)
Jul 17 '05 #2

P: n/a
use session_id()

Savut

"Kevin Thorpe" <ke***@pricetrak.com> wrote in message
news:3f***********************@news.easynet.co.uk. ..
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)

Jul 17 '05 #3

P: n/a
Andy Hassall wrote:
On Thu, 27 Nov 2003 12:40:59 +0000, Kevin Thorpe <ke***@pricetrak.com> wrote:

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)

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

http://www.php.net/manual/en/functio...kie-params.php


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.
Jul 17 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.