Nope, I am setting the session timeout to

this.sessiontimeout = createTimeSpan(0,0,1,0);

so the session should end after 1 minute.  I have changed the onSessionEnd
to

<cffunction name="onSessionEnd" returnType="void">
        <cfargument name="SessionScope" required="yes"/>
        <cfargument name="ApplicationScope" required="yes"/>
        <cfscript>
                arguments.applicationScope.Sessions =
arguments.applicationScope.Sessions - 1;
        </cfscript>
</cffunction>

As suggested by Kev and that seems to have sorted it.

-----Original Message-----
From: Andrew Scott [mailto:[EMAIL PROTECTED] 
Sent: 06 July 2007 09:48
To: CF-Talk
Subject: Re: onSeessionEnd not working?

If I understand your question, you can not expect the onSessionEnd to fire
when a user close their browser. It is only fired when the session actually
times out by the settings set within you admin settings.

On 7/6/07, James Smith <[EMAIL PROTECTED]> wrote:
>
> I currently have an Application.cfc with the following 3 functions...
>
> <cffunction name="onApplicationStart" returnType="void" output="no">
>        <cfscript>
>                Application.Sessions = 0;
>        </cfscript>
> </cffunction>
>
> <cffunction name="onSessionStart" returnType="void">
>        <cfscript>
>                Application.Sessions = Application.Sessions + 1;
>        </cfscript>
> </cffunction>
>
> <cffunction name="onSessionEnd" returnType="void">
>        <cfargument name="SessionScope" required="yes"/>
>        <cfargument name="ApplicationScope" required="yes"/>
>        <cfscript>
>                Application.Sessions = Application.Sessions - 1;
>        </cfscript>
> </cffunction>
>
> When the session starts the Application.Sessions variable is getting
> incremented correctly but for some reason it never goes down suggesting
> that
> onSessionEnd isn't getting called, am I missing some obvious setting
> somewhere?
>
> --
> Jay
>
>
>
> 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
CF 8 – Scorpio beta now available, 
easily build great internet experiences – Try it now on Labs
http://www.adobe.com/cfusion/entitlement/index.cfm?e=labs_adobecf8_beta

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283047
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