Ask a Question related to ASP.NET General, Design and Development.
-
Nate Spillson #1
Session variable losing value
I have an asp.net web application that uses session variables to store
user information (username, security areas, configuration data). When
the user logs into the system I store all of this information in a
class and then dump it into a session variable. The timeout on the
server is set to 2hrs. Every now and then (5min-30min) the web server
will lose the session variable. This is very inconsistent and doesn't
appear to have an associated pattern. Has anyone else come across this
issue and determined the root cause?
I've found a lot of posts that describe this issue but none that
actually pinpoint the cause or solution.
Please don't recommend that I use cookies, some other solution or
question why I'm storing this information in a session variable. The
application is structured in this way to meet specific user/regulatory
requirements and user imposed constraints.
Thanks!
Nate
Nate Spillson Guest
-
Losing session on xp ie6
I'm having a problem with some users losing their session - it seems to be only xp ie6 machines affected. Even with cookies blocked it works fine... -
losing session
I'm having a problem with some users losing their session - it seems to be only xp ie6 machines affected. Even with cookies blocked it works fine... -
losing a session?
Hi Is it possible to lose a session? For instance if on www.coke.com $_SESSION = x; is set and on www.pepsi.com $_SESSION = notX; is set. ... -
Losing Session Variables?
Do any of you guys have any idea what might be the reason for losing session variables, i was working on a page where i had to stroe a array in a... -
Losing Session variables
- We have 2 aspx pages in a .NET project. The first sets a session variable and has a button that when clicked performs a 'redirect' to the second... -
Rao TRN #2
Re: Session variable losing value
Are you sure that the user keeps interacting with your web site for 2 hrs
after he logs in? Typically, I guess you maintain one session class object
per user and populates this class once the user logs in. Once the user
terminates his session (by logging out and closing the browser), it is lost.
That is how a session is defined logically.
"Nate Spillson" <nateusenet@spillson.com> wrote in message
news:1ce32cdf.0308060908.7944a2b@posting.google.co m...> I have an asp.net web application that uses session variables to store
> user information (username, security areas, configuration data). When
> the user logs into the system I store all of this information in a
> class and then dump it into a session variable. The timeout on the
> server is set to 2hrs. Every now and then (5min-30min) the web server
> will lose the session variable. This is very inconsistent and doesn't
> appear to have an associated pattern. Has anyone else come across this
> issue and determined the root cause?
> I've found a lot of posts that describe this issue but none that
> actually pinpoint the cause or solution.
>
> Please don't recommend that I use cookies, some other solution or
> question why I'm storing this information in a session variable. The
> application is structured in this way to meet specific user/regulatory
> requirements and user imposed constraints.
>
> Thanks!
> Nate
Rao TRN Guest
-
Marina #3
Re: Session variable losing value
It really depends on what you mean by "logging out and closing the browser".
If there is code to call Session.Abandon() in the sign out code, then yes,
this ends the session. But you don't know if there is.
Simply closing the browser does not end the session. The session continues
until the timeout.
However, any new browser instances will create a new session - while the
original one is still alive until the timeout occurrs.
Things that can occur an applications restart:
1) chaging DLL's, web.config, etc on the server
2) certain antivirus scanners that scan the above files, thus triggering a
restart
"Rao TRN" <trn_study@hotmail.com> wrote in message
news:%23cJ6n9DXDHA.2620@TK2MSFTNGP09.phx.gbl...lost.> Are you sure that the user keeps interacting with your web site for 2 hrs
> after he logs in? Typically, I guess you maintain one session class object
> per user and populates this class once the user logs in. Once the user
> terminates his session (by logging out and closing the browser), it is> That is how a session is defined logically.
>
> "Nate Spillson" <nateusenet@spillson.com> wrote in message
> news:1ce32cdf.0308060908.7944a2b@posting.google.co m...>> > I have an asp.net web application that uses session variables to store
> > user information (username, security areas, configuration data). When
> > the user logs into the system I store all of this information in a
> > class and then dump it into a session variable. The timeout on the
> > server is set to 2hrs. Every now and then (5min-30min) the web server
> > will lose the session variable. This is very inconsistent and doesn't
> > appear to have an associated pattern. Has anyone else come across this
> > issue and determined the root cause?
> > I've found a lot of posts that describe this issue but none that
> > actually pinpoint the cause or solution.
> >
> > Please don't recommend that I use cookies, some other solution or
> > question why I'm storing this information in a session variable. The
> > application is structured in this way to meet specific user/regulatory
> > requirements and user imposed constraints.
> >
> > Thanks!
> > Nate
>
Marina Guest



Reply With Quote

