Actually StructIsEmpty() will always return false on the session structure.
There are 4 vars that CF includes by default in that structure.  Can anyone
guess what they are.

--K

-----Original Message-----
From: Simon Horwith [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 02, 2000 8:47 AM
To: CF-Talk
Subject: RE: Killing a variable


my understanding is that structClear leaves an empty structure in memory.
You'd probably want to test with StructIsEmpty() after that.

~Simon

-----Original Message-----
From: Chen, Yung-Chih (CIT) [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 02, 2000 11:37 AM
To: CF-Talk
Subject: RE: Killing a variable


so, once you Clear the all session variables, does that mean session
variable
does not exist?
or session variable still exists but without any values!

If I do this <cfset temp = StructClear(session)>
right after that statement can I use isdefined() to find out see if session
variable is exist or not?



-----Original Message-----
From: Bob Silverberg [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 02, 2000 11:22 AM
To: CF-Talk
Subject: RE: Killing a variable



<cfset temp = StructClear(session)> will clear all session variables.  Don't
forget to CFLOCK it.

Bob

-----Original Message-----
From: Jon Gage [mailto:[EMAIL PROTECTED]]
Sent: November 2, 2000 11:03 AM
To: CF-Talk
Subject: Killing a variable


I'm setting a session variable when people log into our site.  I was
wondering if there's a way to "kill" the variable when they log out, so an
isDefined("SESSION.LOGGEDIN") will return as false.  Is this possible?

Thanks,
Jon

----------------------------------------------------------------------------
--------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a
message with 'unsubscribe' in the body to [EMAIL PROTECTED]

----------------------------------------------------------------------------
--------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a
message with 'unsubscribe' in the body to [EMAIL PROTECTED]
----------------------------------------------------------------------------
--------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a
message with 'unsubscribe' in the body to [EMAIL PROTECTED]
----------------------------------------------------------------------------
--------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a
message with 'unsubscribe' in the body to [EMAIL PROTECTED]
------------------------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message 
with 'unsubscribe' in the body to [EMAIL PROTECTED]

Reply via email to