473,408 Members | 2,417 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

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)

Jul 17 '05 #1
3 4702
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Stephen Poley | last post by:
I'm trying to understand sessions and authentication. I gathered that the only way of preserving data across script invocations was to use a session. However I note that $_SERVER and $_SERVER...
16
by: Florence HENRY | last post by:
Hello again, I still do not master everything about cookies and session. :o/ After some tests, I understood that when a visitor has several browser windows open on my website, the same session...
4
by: john | last post by:
How do u guys handle multiple sessions?? i.e, opening different browser windows by running iexplore.exe or clicking IE icons and opening the application. My sessions are mixing up. what i mean is...
17
by: Peter Chant | last post by:
Am I right in assuming that when I connect from one browser, using several tabs to a database produced in mysql/php/apache only uses one session for all tabs? I have been loosing records from my...
11
by: Ohaya | last post by:
Hi, I'm trying to understand a situation where ASP seems to be "blocking" of "queuing" requests. This is on a Win2K Advanced Server, with IIS5. I've seen some posts (e.g.,...
13
by: G | last post by:
Hello, Is it possible to send form values from PAGE1 to PAGE2, and then retain the form info for PAGE3 without using cookies, sessions or DB storage? Also, I dont want to repost page2 to page3...
4
by: David Pendrey | last post by:
Hi all, I am making a program using the I.E. web browser control and need some (more) help. I need multiple windows open (multiple instances of the web browser) open at once on a page which...
8
by: Balazs Wellisch | last post by:
Has anyone here implemented sessions in a load balanced environment using database storage as a custom session handler? I'd be interested to hear about your experiences. Upsides, downsides, bugs,...
5
by: Andy | last post by:
I have an admin section of my asp.net 2 application, and I want to be able to automatically login as a different user (Forms Authentication) whilst keeping my current session going too. The problem...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.