>Hi. I want to kill the session, without having to do <cfset session.xyz =
>""> for each session variable.
>
>My application checks for the existence of a session variable, so I don't
>want session.xyz to exist at all, even with no value.
>
>Any ideas please.
>
>Thanks,
>Ken

While others have suggested using structClear(session) etc., that does have 
some problems with the built in session variables (sessionid, cfid, cftoken, 
jsessionid, and urltoken). However there's a small UDF at CFLib.org that will 
clear out all session variables except the built in ones. You can download it 
at http://www.cflib.org/udf.cfm?ID=1097.

hth,
larry
--
Larry C. Lyons
Web Analyst
BEI Resources
American Type Culture Collection
email: llyons(at)atcc(dot)org
tel: 703.365.2700.2678
--

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:231647
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to