<cfset structDelete(session.cart, "data", false) />
<cfset structDelete(session.cart, "groupID", false) />
That'll remove the 'data' and 'groupID' keys from the session.cart
structure. The 'false' is in there so an exception isn't raised if
the variable is missing. I believe 'false' is the default behaviour,
but I've never bothered to actually check.
cheers,
barneyb
On 10/25/05, Michel Deloux <[EMAIL PROTECTED]> wrote:
> Hi all
>
> I have one simple form with this fields:
>
> <CFIF IsDefined('URL.a') AND URL.a IS "e">
> <!--- kill session vars--->
> <cfset ThisItem=ListFind(ArrayToList(Session.Cart.Data),URL.data)>
> <cfset StructDelete(Session,"Cart.Data[ThisItem]")>
> <cfset StructDelete(Session,"Cart.GroupID[ThisItem]")>
> </CFIF>
>
> How to kill that Session.Cart.Data and Session.Cart.GroupID?
>
> Thanx for your time
>
> Cheers
>
> MD
>
--
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/
Got Gmail? I have 100 invites.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking
application. Start tracking and documenting hours spent on a project or with a
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:222255
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