473,467 Members | 1,481 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Dealing with sessions on explorer 7

How do you deal with sessions on IE7?

Each tab seems to share the same session? This is a real problem as a
person could go to the site, leave the site open and open another page and
be still logged in and share the session information, which I definately
don't want to do.

In IE6, this wasn't a problem as each instance of the browser would have
it's own session ID and information.

Thanks,

Tom
Jun 27 '08 #1
4 970
tshad wrote:
How do you deal with sessions on IE7?

Each tab seems to share the same session? This is a real problem as a
person could go to the site, leave the site open and open another page and
be still logged in and share the session information, which I definately
don't want to do.
I'm afraid that's unavoidable. A user can always open more than one
window/tab.

You could partly protect yourself from this if you store the creation
time of the last page in the Session object, and also in the page so
that you can send it back with every request. That way you can check if
a request comes from the page that was last created.
In IE6, this wasn't a problem as each instance of the browser would have
it's own session ID and information.
The same problem existed, you only didn't notice it. You can open a new
window instead of starting a new instance (shift-clicking or selecting
New Window from the File menu), and the new window is in the same
session. As far as I know, it has been the same ever since version 1.

If you use Firefox, there is only one instance, so there is only one
session. If you try to start another instance, it will just open another
window in the existing instance.

--
Göran Andersson
_____
http://www.guffa.com
Jun 27 '08 #2
This has been a problem since browsers came out. THe only way to avoid two
instances on a browser is to spawn from the start menu. And, there is no way
to force someone to do that.

The best you can do is limit using session as a dump, which reduces your
risk tremendously.

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

Subscribe to my blog
http://gregorybeamer.spaces.live.com/lists/feed.rss

or just read it:
http://gregorybeamer.spaces.live.com/

********************************************
| Think outside the box! |
********************************************
"tshad" <ts***@dslextreme.comwrote in message
news:ub****************@TK2MSFTNGP06.phx.gbl...
How do you deal with sessions on IE7?

Each tab seems to share the same session? This is a real problem as a
person could go to the site, leave the site open and open another page and
be still logged in and share the session information, which I definately
don't want to do.

In IE6, this wasn't a problem as each instance of the browser would have
it's own session ID and information.

Thanks,

Tom
Jun 27 '08 #3
the best way is to code for it. add a request guid to each page render.
then tie a context to each guid, as each page should act its own
session. you should use a locking guid for access to shared session
objects. you should also have some conflict resolution code.

also if you use cookieless sessions you can start a new session whenever
you want and have two tabs with different sessions.

-- bruce (sqlwork.com)

tshad wrote:
How do you deal with sessions on IE7?

Each tab seems to share the same session? This is a real problem as a
person could go to the site, leave the site open and open another page and
be still logged in and share the session information, which I definately
don't want to do.

In IE6, this wasn't a problem as each instance of the browser would have
it's own session ID and information.

Thanks,

Tom

Jun 27 '08 #4
First of all you are incorrect about IE6
If you right click on a link and choose "Open in a new Window" then 2
windows will share the same session.
And on a second note, what is the problem with user using 2 tabs. Unless you
put ViewState into Session I do not see any problem

George.
"tshad" <ts***@dslextreme.comwrote in message
news:ub****************@TK2MSFTNGP06.phx.gbl...
How do you deal with sessions on IE7?

Each tab seems to share the same session? This is a real problem as a
person could go to the site, leave the site open and open another page and
be still logged in and share the session information, which I definately
don't want to do.

In IE6, this wasn't a problem as each instance of the browser would have
it's own session ID and information.

Thanks,

Tom
Jun 27 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Paul | last post by:
I want to use sessions to cover myself in case the user switches off cookies so I am passing the session ID manually through a hidden input field. This is what I have so far. index.php page...
2
by: Simon | last post by:
Hi Folks, Any help here would be much appreciated. i have a page session_write.php /////////////////// session_start(); $_SESSION = 'AAA'; print("sA". $_SESSION);
0
by: Matthias Riechmann | last post by:
Hello! I'm experiencing problems using sessions in php. As long as I access my php-website with the browser using a direct connection everything works fine. But when I activate my own or my...
3
by: Simon K | last post by:
Hi I am working with sessions to check if the user is logged in. This usually works fine and all my .asp-pages checks if: <% session.Contents("loggedIn")=True %> But this only works on my...
1
by: CP | last post by:
I've got an application that searches a catalog. I'm expanding the application to be able to search one of four different catalogs. If I clone a window (ie: CTRL-N or File-New-Window), I get the...
0
by: Nonoy of Philippines | last post by:
Hello, guys... I'm just starting to develop web applications and I have this problem regarding Session objects At some parts of my application, I open modal dialog window which also opens...
10
by: newbie | last post by:
My application_end event in global.asax is not working as-is. In order to debug, I want to call it from another file, say debug.aspx through a button, e.g. "end application". How do I call...
5
by: jheines | last post by:
I am trying to explain how cookies and sessions work in a class I teach, but I have hit a wall when it comes to the interaction between cookies and the state of the privacy settings in Internet...
7
by: Lloyd Sheen | last post by:
I am trying to get two seperate sessions on the same workstation. I have put the sessionid as a label on the page and I get only one sessionid if I open two "sessions" in seperate IE executions. ...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
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
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
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 ...

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.