Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > session on end

Reply
Thread Tools

session on end

 
 
Stephanie Stowe
Guest
Posts: n/a
 
      10-11-2004
http://www.aspfaq.com/show.asp?id=2078

I got my butt whooped over at asp.net group the other day with an offhanded
reference to the unreliability of session on end. I have been told that in
ASP IIS 5 and beyond, it IS reliable and DOES fire. What's the real word?

Thanks


 
Reply With Quote
 
 
 
 
Bob Barrows [MVP]
Guest
Posts: n/a
 
      10-11-2004
Stephanie Stowe wrote:
> http://www.aspfaq.com/show.asp?id=2078
>
> I got my butt whooped over at asp.net group the other day with an
> offhanded reference to the unreliability of session on end. I have
> been told that in ASP IIS 5 and beyond, it IS reliable and DOES fire.


I don't understand. The article DOES say that IIS5+ is less unreliable in
this regard than earlier versions. What is the controversy?

> What's the real word?


The real word is that it may not fire when you want or expect it to fire.
For example, it will not immediately fire when a user closes his browser, so
if you are expecting to do user-tracking in this event, expect it to not be
accurate.

You need to keep in mind that only two events will cause session_onend to
fire:
1. The session times out
2. A Session.Abandon statement is executed

Other events, such as the user closing his browser or navigating to another
website, will not end the session until the timeout period expires.


Bob Barrows
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.


 
Reply With Quote
 
 
 
 
Stephanie Stowe
Guest
Posts: n/a
 
      10-12-2004

"Bob Barrows [MVP]" <> wrote in message
news:...
> Stephanie Stowe wrote:
> > http://www.aspfaq.com/show.asp?id=2078
> >
> > I got my butt whooped over at asp.net group the other day with an
> > offhanded reference to the unreliability of session on end. I have
> > been told that in ASP IIS 5 and beyond, it IS reliable and DOES fire.

>
> I don't understand. The article DOES say that IIS5+ is less unreliable in
> this regard than earlier versions. What is the controversy?
>


Less unreliable is not the same as reliable!

> > What's the real word?

>
> The real word is that it may not fire when you want or expect it to fire.
> For example, it will not immediately fire when a user closes his browser,

so
> if you are expecting to do user-tracking in this event, expect it to not

be
> accurate.
>


Will it fire when the session times out? Consistently?

> You need to keep in mind that only two events will cause session_onend to
> fire:
> 1. The session times out
> 2. A Session.Abandon statement is executed
>
> Other events, such as the user closing his browser or navigating to

another
> website, will not end the session until the timeout period expires.
>
>


Sure enough.

> Bob Barrows
> --
> Microsoft MVP -- ASP/ASP.NET
> Please reply to the newsgroup. The email account listed in my From
> header is my spam trap, so I don't check it very often. You will get a
> quicker response by posting to the newsgroup.
>
>



 
Reply With Quote
 
Bob Barrows [MVP]
Guest
Posts: n/a
 
      10-12-2004
Stephanie Stowe wrote:
> "Bob Barrows [MVP]" <> wrote in message
> news:...
>> Stephanie Stowe wrote:
>>> http://www.aspfaq.com/show.asp?id=2078
>>>
>>> I got my butt whooped over at asp.net group the other day with an
>>> offhanded reference to the unreliability of session on end. I have
>>> been told that in ASP IIS 5 and beyond, it IS reliable and DOES
>>> fire.

>>
>> I don't understand. The article DOES say that IIS5+ is less
>> unreliable in this regard than earlier versions. What is the
>> controversy?
>>

>
> Less unreliable is not the same as reliable!


I should let him speak for himself, but I'm thinking that Aaron is saying
that it is not reliable if the developer is expecting it to fire in
circumstances where it is not supposed to fire.

>
>>> What's the real word?

>>
>> The real word is that it may not fire when you want or expect it to
>> fire. For example, it will not immediately fire when a user closes
>> his browser, so if you are expecting to do user-tracking in this
>> event, expect it to not be accurate.
>>

>
> Will it fire when the session times out? Consistently?


In my experience: yes.

I've never encountered the situations described in Aaron's FAQ article. I've
never seen any documented reports of it failing to fire under IIS5 and
higher. Of course, I haven't been looking for them ...

Bob Barrows
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.


 
Reply With Quote
 
Stephanie Stowe
Guest
Posts: n/a
 
      10-12-2004

"Bob Barrows [MVP]" <> wrote in message
news:...
> Stephanie Stowe wrote:
> > "Bob Barrows [MVP]" <> wrote in message
> > news:...
> >> Stephanie Stowe wrote:
> >>> http://www.aspfaq.com/show.asp?id=2078
> >>>
> >>> I got my butt whooped over at asp.net group the other day with an
> >>> offhanded reference to the unreliability of session on end. I have
> >>> been told that in ASP IIS 5 and beyond, it IS reliable and DOES
> >>> fire.
> >>
> >> I don't understand. The article DOES say that IIS5+ is less
> >> unreliable in this regard than earlier versions. What is the
> >> controversy?
> >>

> >
> > Less unreliable is not the same as reliable!

>
> I should let him speak for himself, but I'm thinking that Aaron is saying
> that it is not reliable if the developer is expecting it to fire in
> circumstances where it is not supposed to fire.
>
> >
> >>> What's the real word?
> >>
> >> The real word is that it may not fire when you want or expect it to
> >> fire. For example, it will not immediately fire when a user closes
> >> his browser, so if you are expecting to do user-tracking in this
> >> event, expect it to not be accurate.
> >>

> >
> > Will it fire when the session times out? Consistently?

>
> In my experience: yes.
>
> I've never encountered the situations described in Aaron's FAQ article.

I've
> never seen any documented reports of it failing to fire under IIS5 and
> higher. Of course, I haven't been looking for them ...
>



Cool. That's what I needed to know.

> Bob Barrows
> --
> Microsoft MVP -- ASP/ASP.NET
> Please reply to the newsgroup. The email account listed in my From
> header is my spam trap, so I don't check it very often. You will get a
> quicker response by posting to the newsgroup.
>
>



 
Reply With Quote
 
Stephanie Stowe
Guest
Posts: n/a
 
      10-12-2004
That is to say, thanks for answering.


 
Reply With Quote
 
Patrice
Guest
Posts: n/a
 
      10-12-2004
I've seen this reported many times myself over years (though I don't use
this event).

Could it be then some kind of Urban Legend forged by those who was expected
to see it fire when it is not supposed to fire !!!!

Patrice
--

"Bob Barrows [MVP]" <> a écrit dans le message de
news:...
> Stephanie Stowe wrote:
> > "Bob Barrows [MVP]" <> wrote in message
> > news:...
> >> Stephanie Stowe wrote:
> >>> http://www.aspfaq.com/show.asp?id=2078
> >>>
> >>> I got my butt whooped over at asp.net group the other day with an
> >>> offhanded reference to the unreliability of session on end. I have
> >>> been told that in ASP IIS 5 and beyond, it IS reliable and DOES
> >>> fire.
> >>
> >> I don't understand. The article DOES say that IIS5+ is less
> >> unreliable in this regard than earlier versions. What is the
> >> controversy?
> >>

> >
> > Less unreliable is not the same as reliable!

>
> I should let him speak for himself, but I'm thinking that Aaron is saying
> that it is not reliable if the developer is expecting it to fire in
> circumstances where it is not supposed to fire.
>
> >
> >>> What's the real word?
> >>
> >> The real word is that it may not fire when you want or expect it to
> >> fire. For example, it will not immediately fire when a user closes
> >> his browser, so if you are expecting to do user-tracking in this
> >> event, expect it to not be accurate.
> >>

> >
> > Will it fire when the session times out? Consistently?

>
> In my experience: yes.
>
> I've never encountered the situations described in Aaron's FAQ article.

I've
> never seen any documented reports of it failing to fire under IIS5 and
> higher. Of course, I haven't been looking for them ...
>
> Bob Barrows
> --
> Microsoft MVP -- ASP/ASP.NET
> Please reply to the newsgroup. The email account listed in my From
> header is my spam trap, so I don't check it very often. You will get a
> quicker response by posting to the newsgroup.
>
>



 
Reply With Quote
 
Stephanie Stowe
Guest
Posts: n/a
 
      10-12-2004
For me, reading the faq article, seeing the very first sentences:

"Session_OnEnd is unreliable. Do not create applications that rely on
Session_OnEnd to occur, because it doesn't always happen. "

Followed by:

"This is a known bug and seems to have been reduced (if not eliminated
entirely) in IIS 5.0, which ships with Windows 2000. "

Aaron's faq has given me countless pieces of great info. So when he said "
is unreliable" and "seems to have been reduced" it did not give me the warm
fuzzies.

Aaron, if you are reading this, do not take this as a criticism. I love your
faq.

Stephanie
(same Stephanie as days gone by in a new job back in ASP land.)

"Patrice" <> wrote in message
news:...
> I've seen this reported many times myself over years (though I don't use
> this event).
>
> Could it be then some kind of Urban Legend forged by those who was

expected
> to see it fire when it is not supposed to fire !!!!



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
HELP! - Session Start, Session End Dan Colgan ASP .Net 2 09-04-2007 03:12 PM
Session Timeout problems-web.confg session state and IIS session s =?Utf-8?B?Um9iSEs=?= ASP .Net 4 04-11-2007 04:52 PM
Tomcat JSP session beans not being removed at the end of the session John Smith Java 2 07-15-2004 12:46 PM
Session end event is firing immediately after session start Ram ASP .Net 0 05-19-2004 08:22 AM
Session State - What does it take to establish one single ASP.NET session per "browser session" Jeff Smythe ASP .Net 3 01-02-2004 04:10 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57