473,388 Members | 977 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,388 software developers and data experts.

Stopping multiple browsers getting session state

Is it possible to programmatically stop multiple browsers from getting
the same session state?

The problem I have is that whenever I open a new browse using File-
>New Window, the session state gets transferred to this new window.
I would like to stop this from happening and redirect to the homepage.

Thanks in advance!

Jun 13 '07 #1
5 2561
Unfortunately, no, as this is a property of the browser. You can set up a
method to "sync" state, but it is generally more of a pain than it is worth.
Technically, you can boot the second browser, but how do you determine it
the new instance other than an old, except perhaps "second time user hits
same page with same info". Unfortunately, all you can try to do then is
pitch the browser.

With JavaScript you can alter the way the browser works and stop some things
from happening, but I am not certain that is your goal.

Now, if this is a testing thing, open a new browser from the menu, not
Contol + N.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com
Co-author: Microsoft Expression Web Bible (upcoming)

************************************************
Think outside the box!
************************************************
"jediknight" <wa*****@gmail.comwrote in message
news:11*********************@e26g2000pro.googlegro ups.com...
Is it possible to programmatically stop multiple browsers from getting
the same session state?

The problem I have is that whenever I open a new browse using File-
>>New Window, the session state gets transferred to this new window.

I would like to stop this from happening and redirect to the homepage.

Thanks in advance!

Jun 13 '07 #2
Hello Cowboy (Gregory A. Beamer),

I'd add that OP perhaps may intercepts postbacks and generate GUID for the
each page.
Then comparing IDs he could know whether he new window was opened, because
the new guid will be generated

---
WBR, Michael Nemtsev [.NET/C# MVP].
My blog: http://spaces.live.com/laflour
Team blog: http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo

CUnfortunately, no, as this is a property of the browser. You can set
Cup a method to "sync" state, but it is generally more of a pain than
Cit is worth. Technically, you can boot the second browser, but how do
Cyou determine it the new instance other than an old, except perhaps
C"second time user hits same page with same info". Unfortunately, all
Cyou can try to do then is pitch the browser.
C>
CWith JavaScript you can alter the way the browser works and stop some
Cthings from happening, but I am not certain that is your goal.
C>
CNow, if this is a testing thing, open a new browser from the menu,
Cnot Contol + N.
C>
C************************************************ Think outside the
Cbox! ************************************************ "jediknight"
C<wa*****@gmail.comwrote in message
Cnews:11*********************@e26g2000pro.googlegr oups.com...
C>
>Is it possible to programmatically stop multiple browsers from
getting the same session state?

The problem I have is that whenever I open a new browse using File-
>>New Window, the session state gets transferred to this new window.
I would like to stop this from happening and redirect to the
homepage.

Thanks in advance!

Jun 13 '07 #3
unless the browser caches the page, then both browser instances have the
same guid. be sure to handle this case. to the server it looks like a
page refresh.
this happens because new window creates a new browser instance with the
same context, so they share the same session cookies. if cookieless, the
session id is in the url (which they share).

-- bruce (sqlwork.com)

Michael Nemtsev wrote:
Hello Cowboy (Gregory A. Beamer),

I'd add that OP perhaps may intercepts postbacks and generate GUID for
the each page.
Then comparing IDs he could know whether he new window was opened,
because the new guid will be generated

---
WBR, Michael Nemtsev [.NET/C# MVP]. My blog:
http://spaces.live.com/laflour
Team blog: http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and
we miss it, but that it is too low and we reach it" (c) Michelangelo

CUnfortunately, no, as this is a property of the browser. You can set
Cup a method to "sync" state, but it is generally more of a pain than
Cit is worth. Technically, you can boot the second browser, but how do
Cyou determine it the new instance other than an old, except perhaps
C"second time user hits same page with same info". Unfortunately, all
Cyou can try to do then is pitch the browser.
CCWith JavaScript you can alter the way the browser works and stop some
Cthings from happening, but I am not certain that is your goal.
CCNow, if this is a testing thing, open a new browser from the menu,
Cnot Contol + N.
CC************************************************ Think outside the
Cbox! ************************************************ "jediknight"
C<wa*****@gmail.comwrote in message
Cnews:11*********************@e26g2000pro.googlegr oups.com...
C>
>>Is it possible to programmatically stop multiple browsers from
getting the same session state?

The problem I have is that whenever I open a new browse using File-

New Window, the session state gets transferred to this new window.

I would like to stop this from happening and redirect to the
homepage.

Thanks in advance!

Jun 13 '07 #4
jediknight wrote:
Is it possible to programmatically stop multiple browsers from getting
the same session state?

The problem I have is that whenever I open a new browse using File-
>New Window, the session state gets transferred to this new window.

I would like to stop this from happening and redirect to the homepage.

Thanks in advance!
You can't stop that from happening. All windows in the same browser
instance belong to the same session.

Also, all browsers doesn't even use separate browser instances. If you
start a new instance of the FireFox program, for example, it will
instead open a new window in the existing instance.

If you want any information to be page specific rather than session
specific, you have to send the information within the page itself.

--
Göran Andersson
_____
http://www.guffa.com
Jun 13 '07 #5
Hello Bruce,

BBto the server it looks like a page refresh.

Exactly. so it helps to prevent the refreshed, afaik

---
WBR, Michael Nemtsev [.NET/C# MVP].
My blog: http://spaces.live.com/laflour
Team blog: http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo
Jun 14 '07 #6

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

Similar topics

13
by: jing_li | last post by:
Hi, you all, I am a newbee for php and I need your help. One of my coworker and I are both developing a webpage for our project using php. We have a copy of the same files in different location...
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.,...
1
by: Tim Meagher | last post by:
I am trying to use Forms Authentication for a web page with cookies and a session state. I'm getting a little confused about how to use both and how the timeouts work. My goal is to have a web...
6
by: mark | last post by:
I have an asp.net ecommerce web application on a remote web server. I'm using an Access database on the back end. I've notice a few strange things. When I mimic an multiple user environment by...
4
by: Jeff | last post by:
We have multiple ASP.Net web apps in development. As a standard we are looking to go with SQL Server to hold state information. Can we have the multiple apps all point to a single State DB? Or...
10
by: Conformix Sales | last post by:
Any thought about how can I stop a user from logging into the application multiple times. I am using forms authentication.
1
by: jack_c_brinegar | last post by:
I am trying to identify a problem that has just been reported to our team. It seems that when a user opens 2 browsers, and with the second browser, the user logs into our web application...
4
by: jack | last post by:
Hi , please help me in this I have created a login page which creates a ticket. and im getting my inbox page of my project . ( just for the info. ) The problem is that when i have a page in the...
1
by: mcbobin | last post by:
Hi, Hopefully somebody can help me... The development team I work in has created a large application that has started displaying some nasty bugs which we think are being caused by the session...
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?
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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...

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.