Yes, you can set session (non-persistent) cookies - they're in memory but are not 
written to the client's hard drive. The cookies go away when you close all the browser 
windows.  

In cfapplicaion use 
setclientcookies="No"
then use <cfcookie> to set cookies with no dates, which makes then non-persistent-
example: <cfcookie name="CFID" value="#client.CFID#">

Chris Norloff


---------- Original Message ----------------------------------
From: Greg McDaniel <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
date: Wed, 19 Mar 2003 20:26:19 -0600

>I do want to use cookies, but I don't want them written
>to the hard drive, it should be in memory only.
>
>I had found a snippet somewhere that said if you did not set
>the cookie with an expiration time the cookie would disappear
>when the browser was closed.
>
>Something like this: <cfcookie name="xxx" value="yyy">
>
>Does it really work or is this one of those Urban Web Myths?
>
>Greg M
>
>
>-----Original Message-----
>From: Dave Carabetta [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, March 19, 2003 9:50 AM
>To: CF-Talk
>Subject: Re: cfapplication and cookies
>
>
>>This is probably a complex simple question, but here goes.
>>
>>What settings do I need to put into cfapplication to accomplish the
>>following?
>>
>>      No Cookie written to the Browswer
>>      Client Variables Stored in a Database
>
>
>1. SETCLIENTCOOKIES="No"
>2. CLIENTSTORAGE="myDatasource" (make sure you set the tables up via CF
>Admin)
>
>I'm also assuming you know that since you won't be setting cookies, you will
>have to manually pass the CFID/CFTOKEN value in the URL string to maintain
>state.
>
>Regards,
>Dave.
>
>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to