William Seiter wrote:
> if you have declared the OnSessionEnd in the application.cfc, can't  
> you specifically call that function?
> <cfscript>
>       structClear(session);
>       OnSessionEnd();
> </cfscript>
>
> william

Yes you can, but that does not actually end the session.  The function 
will still be called when the even actually fires at the end of the 
session timeout.  Also, the function is not run in the thread safe mode 
it is run when the even fires.  If your code does not care or is built 
to handle these conditions it may be a moot point.  But these are 
factors to be aware of, or very difficult to debug and subtle errors can 
easily be introduced into your application.

As well as what Brad said.  There is no 100% guaranteed way for this to 
be fired other then when the session timeout occurs.  Even that isn't 
guaranteed in events such as server shutdowns, restarts or crashes.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

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

Reply via email to