473,807 Members | 2,825 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

New Browser Window = New SessionID?

I have searched high and low, and I can't find anybody having this problem,
so I'm sure it's something really simple I'm overlooking. In fact, I've
seen many posts of people trying to set up the exact problem I'm having.

My ASP.NET (2.0) SessionID is being reset every time I start a new browser.
I have tested this with a totally clean page, and totally clean Web.config
file, so that I know I'm using all of the default settings (mode = InProc,
cookieless = UseCookies).

I have a blank ASPX page, and all it does is write information to the trace
buffer:

Session.Session ID = w42g1ees1abjmuj uqququf55
Session.Timeout = 20
Session.IsCooki eless = False
Session.CookieM ode = UseCookies
Session.IsNewSe ssion = True
Session.IsSynch ronized = False

If I start a new window, and key in the exact same URL, I get the exact same
information as above, except with a totally new SessionID.

Also, I tried to troubleshoot by looking at the actual cookie stored on my
machine, and I can't find it. Maybe this is an indication (since it's not
writing the cookie, then it has no choice but to reset every time a new
browser is created). However, I have no idea why this would be the case, as
I have never messed w/ the browser cookie settings on my machine, and all
other cookies on other sites work just fine. Also, it's not just my
computer -- the same thing happens on all computer that use this site.

I'm totally baffled, so any suggestions would be greatly appreciated.

Thanks in advance.
Jerad
Apr 11 '07 #1
4 8397
asp.net uses a session cookie (do not write to storage). this means if
you start a new browser window you get a session. if you do new window,
or your javascript opens a new window, it will keep the same cookie.

if you want persistant cookie, you will need to override the session
cookie settings. You can do this with a custom session state manager.

-- bruce (sqlwork.com)

Jerad Rose wrote:
I have searched high and low, and I can't find anybody having this problem,
so I'm sure it's something really simple I'm overlooking. In fact, I've
seen many posts of people trying to set up the exact problem I'm having.

My ASP.NET (2.0) SessionID is being reset every time I start a new browser.
I have tested this with a totally clean page, and totally clean Web.config
file, so that I know I'm using all of the default settings (mode = InProc,
cookieless = UseCookies).

I have a blank ASPX page, and all it does is write information to the trace
buffer:

Session.Session ID = w42g1ees1abjmuj uqququf55
Session.Timeout = 20
Session.IsCooki eless = False
Session.CookieM ode = UseCookies
Session.IsNewSe ssion = True
Session.IsSynch ronized = False

If I start a new window, and key in the exact same URL, I get the exact same
information as above, except with a totally new SessionID.

Also, I tried to troubleshoot by looking at the actual cookie stored on my
machine, and I can't find it. Maybe this is an indication (since it's not
writing the cookie, then it has no choice but to reset every time a new
browser is created). However, I have no idea why this would be the case, as
I have never messed w/ the browser cookie settings on my machine, and all
other cookies on other sites work just fine. Also, it's not just my
computer -- the same thing happens on all computer that use this site.

I'm totally baffled, so any suggestions would be greatly appreciated.

Thanks in advance.
Jerad

Apr 11 '07 #2
"bruce barker" <no****@nospam. comwrote in message
news:OL******** ******@TK2MSFTN GP04.phx.gbl...
if you do new window, or your javascript opens a new window, it will keep
the same cookie.
Not necessarily - this absolutely cannot be relied upon...
Apr 11 '07 #3
I have searched high and low, and I can't find anybody having this
problem, so I'm sure it's something really simple I'm overlooking. In
fact, I've seen many posts of people trying to set up the exact
problem I'm having.

My ASP.NET (2.0) SessionID is being reset every time I start a new
browser. I have tested this with a totally clean page, and totally
clean Web.config file, so that I know I'm using all of the default
settings (mode = InProc, cookieless = UseCookies).

I have a blank ASPX page, and all it does is write information to the
trace buffer:

Session.Session ID = w42g1ees1abjmuj uqququf55
Session.Timeout = 20
Session.IsCooki eless = False
Session.CookieM ode = UseCookies
Session.IsNewSe ssion = True
Session.IsSynch ronized = False
If I start a new window, and key in the exact same URL, I get the
exact same information as above, except with a totally new SessionID.
A session on the server is not kept if there is nothing to keep in it. Try
writing
something to the Session in that testpage.
Also, I tried to troubleshoot by looking at the actual cookie stored
on my machine, and I can't find it. Maybe this is an indication
(since it's not writing the cookie, then it has no choice but to reset
every time a new browser is created). However, I have no idea why
this would be the case, as I have never messed w/ the browser cookie
settings on my machine, and all other cookies on other sites work just
fine. Also, it's not just my computer -- the same thing happens on
all computer that use this site.

I'm totally baffled, so any suggestions would be greatly appreciated.

Thanks in advance.
Jerad

The session-cookie is not stored on disk, it is kept in memory (so it will
disappear
when you close the browser).
Hans Kesting
Apr 11 '07 #4
Jerad Rose wrote:
I have searched high and low, and I can't find anybody having this problem,
so I'm sure it's something really simple I'm overlooking. In fact, I've
seen many posts of people trying to set up the exact problem I'm having.

My ASP.NET (2.0) SessionID is being reset every time I start a new browser.
I have tested this with a totally clean page, and totally clean Web.config
file, so that I know I'm using all of the default settings (mode = InProc,
cookieless = UseCookies).

I have a blank ASPX page, and all it does is write information to the trace
buffer:

Session.Session ID = w42g1ees1abjmuj uqququf55
Session.Timeout = 20
Session.IsCooki eless = False
Session.CookieM ode = UseCookies
Session.IsNewSe ssion = True
Session.IsSynch ronized = False

If I start a new window, and key in the exact same URL, I get the exact same
information as above, except with a totally new SessionID.

Also, I tried to troubleshoot by looking at the actual cookie stored on my
machine, and I can't find it. Maybe this is an indication (since it's not
writing the cookie, then it has no choice but to reset every time a new
browser is created). However, I have no idea why this would be the case, as
I have never messed w/ the browser cookie settings on my machine, and all
other cookies on other sites work just fine. Also, it's not just my
computer -- the same thing happens on all computer that use this site.

I'm totally baffled, so any suggestions would be greatly appreciated.

Thanks in advance.
Jerad
There is a difference between starting a new window and starting a new
browser instance. If you use the "New Window" option in Internet
Explorer, it will create another window in the same session, but if you
start a new instance of Internet Explorer from the start menu (or
similar), it will become a separate process, and have it's own session.

Firefox on the other hand only ever has one instance of the program
running, so if you try to start another instance, it will only open
another window in the existing instance.

--
Göran Andersson
_____
http://www.guffa.com
Apr 11 '07 #5

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

Similar topics

2
19198
by: jeff | last post by:
Hello, I'm building an internal web application using HTML/PHP/Javascript. The system is flexible to the point where the user can have as many browser windows open for each part of the system. I would like a browser window that has just gained the focus to refresh. Is this possible and how? Thanks,
10
2398
by: Simon Wigzell | last post by:
Is there any way to create and open a window in javascript so that links in other websites won't "steal" it? I've written a web page with a form for people to enter headlines and URLs from newspapers. They will want my window to stay there as they surf through various online newspapers. We don't want their popup links to take over my form window! This is a real problem - it renders my web page useless and wastes peoples time.
3
3449
by: Shiperton Henethe | last post by:
Hi Can anyone tell me how to open up a new normal, full-sized browser window from a small popup window? I'm using something like this. <script language="javascript"> <!--
33
4084
by: randau | last post by:
Linking to a Targeted Browser Window I'd like to open reference links to other web sites in a separate browser window from the browser window hosting my own web site pages. The Link Target reserve word "_blank" opens a blank new browser window for every link, which can sometimes result in a lot of open browser windows. Is there no way to "reuse" a previously linked browser window and have it load the new web page in Foreground
10
11625
by: santiago538 | last post by:
Hi, Is there any way to specify which monitor a Window.open() will launch a new browser window in on systems with more than one display. It would only need to work with Mozilla browsers, and not IE. Thanks!
6
3066
by: G Dean Blake | last post by:
in my aspx app I am writing a stream that works fine but it replaces what is in the client browser window. The code is as follows: .. .. HttpContext.Current.Response.ClearHeaders() HttpContext.Current.Response.ClearContent() HttpContext.Current.Response.ContentType = "application/pdf" Dim myBuffer(MyStream.Length) As Byte MyStream.Read(myBuffer, 0, CType(MyStream.Length, Integer)) HttpContext.Current.Response.BinaryWrite(myBuffer)
1
2800
by: Feng | last post by:
Hi, Need help on the following issue. We need to clean up some session specific backend resource when a user ends his session. We have a "Logoff" button on the pages that handles that. But the problem is that sometimes the user still closing their browser window by clicking on the "x" button of the window. This is quite a problem for us because it will leave unreleased resource on the server for an unpredictable period of time,...
3
6468
by: Jimmy | last post by:
Is it possible to open a pop-up browser window (modal-style) inside another browser? e.g. // assuming something is calling this function inside the html as some event got triggered function doSomethingInDiffWindow() { // do something // open up a pop-up modal window // continue back on doing something after pop-up modal window
1
6269
by: alnino | last post by:
Hi, On a form I have a command button that allows a user to browse for a file (PDF, Word, etc…). This command button then stores a hyperlink to the file within an associated txtfield in the table. The VB to browse for the file is as follows Private Sub CmdBuildingAdd_Click() Me!txtSelectedFile = BrowseFiles()
0
9720
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...
0
9599
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10374
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
9193
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...
0
6879
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5546
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4330
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
3854
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3011
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.