Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Why is session being shared in Safari and Firefox? 1

Status
Not open for further replies.

RobHudson

Programmer
Apr 30, 2001
172
GB
Hi

I have come across a problem with a session being shared across 2 browser windows. This is happening in Safari and Firefox but not in IE.

To create the problem I do the following:
1: Open 2 instances of Firefox
2: Login on both instances as the same user
3: Go to page that is looking at a specifc row data. For example in 1 instance is looking at product X and the other looking at product Y. This will have set a session variable for each instance to X and Y accordingly.

But, the session variable has the value of whichever product I looked at last.

Has anybody else had this problem?
The code is very simple literally: Session["xyz"] = "12345";

Cheers
Rob
 
This is just how Firefox (and I presume Safari as well since you mention it) work. Opening two instances doesn't mean that you have two separate sets of cookies for that session on your application. You can prove this by writing out the session id on both instances and I'm pretty sure you'll see the same id.


-------------------------------------------------------

Mark,
[URL unfurl="true"]http://aspnetlibrary.com[/url]
[URL unfurl="true"]http://mdssolutions.co.uk[/url] - Delivering professional ASP.NET solutions
[URL unfurl="true"]http://weblogs.asp.net/marksmith[/url]
 
We've also had the same problem with IE 6 and IE 7...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top