Hello all:

I'm beginning to go a bit crazy here...first my cookies in an application 
were working (i.e. being set the way I wanted them to) and now they're not!

I'm using an application.cfm file with the following code:

<CFAPPLICATION NAME="Camp_EVCalendar"
                 CLIENTMANAGEMENT="Yes"
                 SESSIONMANAGEMENT="Yes"
               SESSIONTIMEOUT="#CreateTimeSpan(0,0,30,0)#"
               CLIENTSTORAGE="Cookie">

Then there is a log in page which sends the username and password to the 
action page.

In the action page it queries the database to see if the user is there and 
then does the following:

<!--- Check to see if any records were found to match user supplied data. --->
<CFIF #Check_login.RecordCount# IS "1">

        <!--- Check to see if the password in the database matches the password 
supplied by user --->

        <CFIF #Check_login.password# IS "#form.password#">
                
                   <CFCOOKIE NAME="UserID" VALUE="#Check_login.UserID#">
                   <CFCOOKIE NAME="date" VALUE="#DateFormat(Now(), 
"MM/DD/YYY")">
                   <CFLOCATION URL="adminhome.cfm" ADDTOKEN="NO">

If I put <CFCOOKIE> at the top of the file I'm processing instead of where 
it is now the cookies set just the way I want them to, but I only want them 
to be set after their username and password has been verified.  I would 
appreciate any help I can get on this.

Also, if anyone knows of some urls that covers this kind of topic more 
in-depth I would really appreciate it since I figure I will probably have 
more questions further down the road.  It tried searching Allaire's site, 
but it's not functioning.  If you can cc me in your response to the list I 
would appreciate it.

Thank you!
Jenny




------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
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