On 4/9/00, Snazzo Boy penned:
>I'm new to ColdFusion and I was wondering if someone
>could tell me the best way to put someone's UserID into
>a cookie and how to access it from that point on.  I know
>it's a really simple questions, but I am just a simple man. :P

To set:

<cfcookie name="User_ID" value="#User_ID#" expires="see below">

Valid expirations:

Date as "5/5/2000"
Days from now as "60"
NOW
NEVER

To retrieve:

#cookie.User_ID#

Check for the cookie first with IsDefined('cookie.User_ID')

Can't set a cookie on the same page that you do a cflocation.


Bud Schneehagen - Tropical Web Creations

_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
ColdFusion Solutions / eCommerce Development
[EMAIL PROTECTED]
http://www.twcreations.com/
954.721.3452
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to