The documentation is most likely wrong.  I don't see how a server could know
when the user has closed their browser... I think what they mean is that
when the use closes their browser, the J2EE session cookie times out (and
with CFID and CFTOKEN it might not necessarily time out when the session is
closed, but instead time out at the session timeout time.  

Once the session has reached it's timeout time, the onSessionEnd would get
called. 

Russ

> -----Original Message-----
> From: Ian Skinner [mailto:[EMAIL PROTECTED]
> Sent: Friday, August 25, 2006 6:04 PM
> To: CF-Talk
> Subject: RE: CFexecute in onSessionEnd.
> 
> This might be a dumb thing but doen't you have to pass in the session to
> onSessionEnd? <cffunction name="onSessionEnd" returnType="void">
>       <cfargument name="SessionScope" required=True/>
>       <cfargument name="ApplicationScope" required=False/>
> 
> It might be causing an error which wouldn't get thrown to anything.
> 
> Nope, that is not the issue.  You only need to pass the scopes to the
> function if you want to read values from them.  If you don't care, as I
> currently don't, you do not need to pass in the scope.
> 
> I've further tested this.  It works when the session times out.  But even
> though I have J2EE sessions enabled, the onSessionEnd does not fire when
> the browser is closed. It does fire sometime later when the session times
> out, even though the browser has been closed.  This seems to be counter
> this passage of the documentation.
> 
> <quote src="CFML Reference - Application CFC Reference - onSessionEnd">
> A session ends when the session is inactive for the session time-out
> period or, if using J2EE sessions, the user closes the browser.
> </quote>
> 
> 
> --------------
> Ian Skinner
> Web Programmer
> BloodSource
> www.BloodSource.org
> Sacramento, CA
> 
> ---------
> | 1 |   |
> ---------  Binary Soduko
> |   |   |
> ---------
> 
> "C code. C code run. Run code run. Please!"
> - Cynthia Dunning
> 
> Confidentiality Notice:  This message including any
> attachments is for the sole use of the intended
> recipient(s) and may contain confidential and privileged
> information. Any unauthorized review, use, disclosure or
> distribution is prohibited. If you are not the
> intended recipient, please contact the sender and
> delete any copies of this message.
> 
> 
> 
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:251091
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to