I miss the information about using an event like OnSessionStart in ASP.NET
2.0.
and another problem, the property IsNewSession is still true and it seems
like the session is new with each client request.
The session ID is changing too.
Any idea how to use this correctly (session will be IsNewSession=true only
with first request and the session will keep this for 20 minutes)
ThanksI put the Global.asax into my application and the IsNewSession is working
well.
"Mirek Endys" <MirekE@.community.nospam> wrote in message
news:eYulLdSPGHA.3264@.TK2MSFTNGP11.phx.gbl...
>I miss the information about using an event like OnSessionStart in ASP.NET
>2.0.
> and another problem, the property IsNewSession is still true and it seems
> like the session is new with each client request.
> The session ID is changing too.
> Any idea how to use this correctly (session will be IsNewSession=true only
> with first request and the session will keep this for 20 minutes)
> Thanks
>
Hi Mirek,
Thanks for posting.
As for the ASP.NET sessionstate, when the user hasn't stored any data in
the session, on each request, the runtime could assigned a random sessionid
to it (since no data store associated with it). And this is determined by
the internal implementation, at least for 1.1 , it follows such rule. And
here is a good FAQ article discusing on ASP.NET SessionState:
#ASP.NET Session State FAQ
http://www.eggheadcafe.com/articles/20021016.asp
Regards,
Steven Cheng
Microsoft Online Support
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Thursday, March 29, 2012
OnSessionStart or IsNewSession
Labels:
asp,
event,
isnewsession,
miss,
net,
net2,
onsessionstart,
property
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment