David,

It seems like there's a typo in some part of your code where you are pulling
the wrong query variable in, or something like that.  I would go through to
every statement (in all conditions) that sets the cookie.  Look at the value
you are putting into the cookie (a variable, no doubt), and check that it's
the variable you want.  If it looks right, trace it all the way back through
the code to where you got it.  It sounds to me like it has to be a simple
mistake somewhere along that chain.

Hope this is useful,
Matthieu

-----Original Message-----
From: David Caplan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 18, 2002 11:45 AM
To: CF-Talk
Subject: Cookie problem - Cookie value gets reset as random integer


I have a site where I save the user login information in a persistent
cookie. The cookie is set as an individual email address (eg.
[EMAIL PROTECTED]). I have been running into some problems where the cookie
value gets reset as some random number like 8499 or whatever. I have no idea
how the cookie is getting reset. I know this is happening because people are
entering contests and they are being directed through a link in an email
(which I also send out), before I insert the contest entrant I do a cookie
check, and then I insert. When I look at the result of lot of entrants are
showing as userID = 1234, when they should all be showing email addresses.
Anyone have any ideas.

thanks,

David Caplan
----------------------------------------------------------------------------
36 w 20 st  |  nyc 10011  | 646.485.9136 | www.fusebox.com  |


FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
______________________________________________________________________
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to