473,698 Members | 2,404 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 4741
On Thu, 27 Nov 2003 12:40:59 +0000, Kevin Thorpe <ke***@pricetra k.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***@pricetra k.com> wrote in message
news:3f******** *************** @news.easynet.c o.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***@pricetra k.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
2483
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 are also preserved across invocations and even from one script to another. How does this work? (Are they repeatedly sent from the browser every time? If so, what stops a site author from collecting a user name and password originally entered for...
16
4429
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 id is used for all. The consequence is that if the data are changing in one window, they will also change in another one.
4
31195
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 suppose i log in my site using username "test". At this time I set $_SESSION="test". And I use $_SESSION inside my application to print the username. Now if I open another browser & log in with "another test" the session
17
8021
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 database and my best guess is that each tab is not a separate session, therefore the session variables are shared by all tabs and unfortunately this plays havoc when I try to update my database using the forms I have created. Is there anyway to...
11
4955
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., http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=Tidy7IDbDHA.2108%40cpmsftngxa06.phx.gbl) that indicate that ASP will queue up requests when they come in with the same "session".
13
1738
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 using hidden form fields. Just curious! Want to know how to "simply" maintain user form inputs across a web site even when security and privacy controls are set to MAXIMUM on the browser. I know using databases would do it, but I would love to...
4
1913
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 requires the user to log on. As it is now I simple create the new forms and the webpage asks me to log in again. Is there some way of making all the web browser controls use the same internet sessions or something similar which will have the desired...
8
2297
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, troubles, security, etc. Thanks, Balazs
5
1910
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 is that if I open a new browser window (via a hyperlink using target="_blank") from my app and automatically login, the original session is also reset to the new one (ie all session variables that store info about the user are set to the new...
0
8675
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
8897
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8862
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7729
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6521
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4619
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3050
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2331
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2002
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.