D
daokfella
I have an HttpHandler that is "pinged" via ajax to see if the user's
session has expired. I'm using Session.IsNewSession. However, I get
some weird results. In some testing, it works fine. However, sometimes
it just begins to return True no matter what. While debugging, the
Session was definitely not new (same SessionId).
I read somewhere that the Session_Start needed to be wired up in
Global.asax in order to use Session.IsNewSession reliably. It was
wired up, but no code was written inside the event. I added {string s
= "";} in the Session_Start event, and things started working OK, but
I'm afraid this is one of those "false" tests that I've had in the
past.
Does anybody have an explanation for me why this behavior might be
happening?
session has expired. I'm using Session.IsNewSession. However, I get
some weird results. In some testing, it works fine. However, sometimes
it just begins to return True no matter what. While debugging, the
Session was definitely not new (same SessionId).
I read somewhere that the Session_Start needed to be wired up in
Global.asax in order to use Session.IsNewSession reliably. It was
wired up, but no code was written inside the event. I added {string s
= "";} in the Session_Start event, and things started working OK, but
I'm afraid this is one of those "false" tests that I've had in the
past.
Does anybody have an explanation for me why this behavior might be
happening?