|
Here's my theory: Your table of users needs to contain a column for CF's session.sessionID variable. Put it in there when the user joins the chat. Your onSessionEnd function would start with something like this: <cffunction name="onSessionEnd" returnType="void" output="false"> <cfargument name="sessionScope" type="struct" required="true"> ... I'm pretty sure CF passes the (expiring) session object into the function when called. So your query would update your user table where [yourcolumnname] = '#sessionScope.sessionID#' Totally untested, but that's what I'd try. Al P.S. Here's more from Ray: http://ray.camdenfamily.com/index.cfm/2007/3/15/Counting-Sessions-with-Applicationcfc On 3/2/2013 9:19 AM, Marcus F wrote:
In short, I've never used it before and can't figure out how to use it and pull the session variables. -- -- online documentation: http://openbd.org/manual/ http://groups.google.com/group/openbd?hl=en --- You received this message because you are subscribed to the Google Groups "Open BlueDragon" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out. |
- [OpenBD] Help with onsessionend Marcus F
- Re: [OpenBD] Help with onsessionend Alan Williamson
- Re: [OpenBD] Help with onsessionend Alan Holden
- Re: [OpenBD] Help with onsessionend Marcus F
- Re: [OpenBD] Help with onsessionend Alan Holden
- Re: [OpenBD] Help with onsessionend Marcus F
- Re: [OpenBD] Help with onsessio... Alan Holden
- Re: [OpenBD] Help with onse... Peter J. Farrell
- Re: [OpenBD] Help with onse... Marcus F
