I actually just needed to delete a structure, so I read up a little and
tried out some cfdumps, and according to Jedi Master Forta (Web Application
Construction Kit, 4th Ed), StructClear just erases the current user's
session (and everything in it.)  It doesn't erase all session variables on
the server, just the one's tied to that user's CFID and CFToken, which
includes CDID, CFToken, SessionID, URLToken, and whatever variables your
application uses...

Tyler Silcox
email | [EMAIL PROTECTED]
website | www.gslsolutions.com
----- Original Message -----
From: "Maia, Eric" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, November 13, 2001 2:31 PM
Subject: StructClear(Session)


Douglas said:
 One thing to note, is that with structClear() you will be
killing all session vars and not just the user that logged out.


I just checked, and in my app at least, this is not true. I use
StructClear(session) to log folks out and it works just fine. I just tried
logging in as two different users on two different machines, and I could log
out one account and the other continued with no problems.

I would think it would be a major inconsistency for it to clear all session
variables for all sessions, since you can only set variables for the one
active session.

Here's the contents of my act_logout.cfm file:


<CFSET tmp = StructClear(Session)>

<cfcookie name="cfid" expires="NOW">
<cfcookie name="cftoken" expires="NOW">

 - Eric


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to