on 11/20/00 5:13 PM, Scott Wolf at [EMAIL PROTECTED] wrote:
> Will arraydelete kill all of the session vars for just that one session?
> I'm trying to write a logoff page that completely ends a session, and
> I just want to make sure that I can scrap all the vars without affecting
> any other user's session.
Just expire the session in Application.cfm:
<cfif isdefined("logout")>
<cfapplication
name="myapp"
sessionmanagement="yes"
sessiontimeout=#createtimespan(0,0,0,0)#>
<cfelse>
<cfapplication
name="myapp"
sessionmanagement="yes"
sessiontimeout=#createtimespan(0,2,0,0)#>
</cfif>
Pass the parameter "logout" to any page and the session will die. You could
also set cookie.cfid and cookie.cftoken to 0 and expire them too.
--
Rob Keniger
big bang solutions
<mailto:[EMAIL PROTECTED]>
<http://www.bigbang.net.au>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists