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 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
"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...
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
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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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.
...
|
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...
|
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">
<!--
|
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...
|
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...
|
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()...
|
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...
|
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...
|
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....
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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$) {
}
...
|
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...
|
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...
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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...
|
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...
| |