I am having the hardest time setting a cookie.  I think it is actually in
testing for the form field.  
 
Simple login application.
-User comes to page
-gets authorized
-If "remember me" is checked, set a cookie
 
Here is the code for setting the cookie.
 
<CFIF get_user.recordcount>
 <CFSET Session.current_user_id = get_user.userID>
 
 <!--- If "Remember Me" was checked, set a cookie on user's computer w/ User
ID.  --->
 <CFIF IsDefined("form.rememberme") IS "Yes">
 <SCRIPT TYPE="text/javascript"> alert("Hey set a cookie will you!")
</SCRIPT>   ----For testing of course
 <CFCOOKIE name="sID" value="#get_user.userID#" EXPIRES="NEVER">
 </CFIF>
 
The form field looks like this....
<INPUT TYPE="checkbox" NAME="rememberme" VALUE="Yes"><FONT
face="Tahoma">&nbsp;Remember Me</FONT>
 
I have tried everything I can think of.   I have read 3 diferent examples of
this exact thing.  Could it be that I am using the cf4.5 svr that comes w/
cfstudio, and not on a real live server?  I know that some things do not
function properly on this version of the server software, but I don't know
which things.
 
Thanks
 
Chris Luksha
IS/Web Programmer
Helmers Publishing, Inc.
Publishers of
Desktop Engineering and
Supply Chain Systems Magazines
(603)924-9631 ext. 267
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>  
 

______________________________________________________________________
Why Share?
  Dedicated Win 2000 Server · PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation · $99/Month · Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionc
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to