Try this...
This is what I use to kill all session variables.  Works perfectly for
logout:

<CFSCRIPT>StructClear(Session);</CFSCRIPT>
<CFCOOKIE NAME="CFID" VALUE="0" EXPIRES="NOW">
<CFCOOKIE NAME="CFTOKEN" VALUE="0" EXPIRES="NOW">

Danny Davis

----- Original Message -----
From: "Scott Wolf" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Monday, November 20, 2000 2:13 AM
Subject: RE: Deleting Session Variables


> 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.
>
> Scott Wolf
>
> -----Original Message-----
> From: Scott M. Berry [mailto:[EMAIL PROTECTED]]
> Sent: Monday, November 20, 2000 2:13 AM
> To: CF-Talk
> Subject: Re: Deleting Session Variables
>
>
> Session variables are stored in an array. You can kill the array
> (arraydelete()) but that will kill all the vars and Allaire does not
> recommend that. You can probably do some nifty functions by converting the
> array to a list, and finding out the position of the var you want to
delete
> and then doing a arraydeleteat() for that var.. not sure.. guessing here.
>
> Scott M. Berry :-: [Staff Developer]
> annex.com, Inc. - http://www.annex.com/
>
>
> ----- Original Message -----
> From: "Scott Wolf" <[EMAIL PROTECTED]>
> To: "CF-Talk" <[EMAIL PROTECTED]>
> Sent: Sunday, November 19, 2000 10:52 PM
> Subject: Deleting Session Variables
>
>
> > I know this question was asked just a couple of days ago, but
> > I lost all of my old e-mail when I formatted my HD.  How can
> > I remove a session variable completely?  I know I can change
> > the value using CFSET (i.e. <CFSET Session.LoggedIn = "1">)
> > but I don't know how to remove it altogether.  Please let me
> > know if you can.  Thanks!
> >
> > Scott Wolf
> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > Structure your ColdFusion code with Fusebox. Get the official book at
> http://www.fusionauthority.com/bkinfo.cfm
> >
> > Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
> > Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
> >
>
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Structure your ColdFusion code with Fusebox. Get the official book at
> http://www.fusionauthority.com/bkinfo.cfm
>
> Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
> Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
>
> Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
> Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to