hmmm...there's an easier way to delete a session var;

within CFSCRIPT, use

StructDelete(session, varname);

where varname is the session varname.

-----Original Message-----
From: Scott Wolf [mailto:[EMAIL PROTECTED]]
Sent: Sunday, November 19, 2000 11:49 PM
To: CF-Talk
Subject: RE: Deleting Session Variables


Thanks for the help. I've got it working now. :P

Scott Wolf

-----Original Message-----
From: Bill Killillay [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 20, 2000 2:41 AM
To: CF-Talk
Subject: RE: Deleting Session Variables


Rob,
Seems to me that if you do it this way, your not only
expiring the session var's for the intended user, but also
for everybody else using that "application" at that time.

> 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.

Anybody else with any thoughts on the matter?

<cf_warrior name="Bill">

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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

Reply via email to