473,385 Members | 1,582 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,385 software developers and data experts.

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.SessionID = w42g1ees1abjmujuqququf55
Session.Timeout = 20
Session.IsCookieless = False
Session.CookieMode = UseCookies
Session.IsNewSession = True
Session.IsSynchronized = 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 8378
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.SessionID = w42g1ees1abjmujuqququf55
Session.Timeout = 20
Session.IsCookieless = False
Session.CookieMode = UseCookies
Session.IsNewSession = True
Session.IsSynchronized = 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**************@TK2MSFTNGP04.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.SessionID = w42g1ees1abjmujuqququf55
Session.Timeout = 20
Session.IsCookieless = False
Session.CookieMode = UseCookies
Session.IsNewSession = True
Session.IsSynchronized = 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.SessionID = w42g1ees1abjmujuqququf55
Session.Timeout = 20
Session.IsCookieless = False
Session.CookieMode = UseCookies
Session.IsNewSession = True
Session.IsSynchronized = 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
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. ...
10
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...
3
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
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...
10
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...
6
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()...
1
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...
3
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...
1
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....
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
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
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...

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.