I believe this is down to an old 'bug' in CF where you cannot set a cookie
immediately before a CFLOCATION - there are ways around it I think but off
hand I cannot remember - sure someone will chip in ;-)



-----Original Message-----
From: Daniel Kessler [mailto:[EMAIL PROTECTED] 
Sent: 04 August 2005 15:36
To: CF-Talk
Subject: cfcookie

I am using cookies to define whether a person is logged in.
<cfif NOT isDefined('cookie.fsnep_login')>
- no cookie
- set return url
- link to login page
</cfif>

click to go to the login, log in and it does:
<cfset k = structDelete(cookie,'fsnep_login',true)>
<cfcookie name="fsnep_login" value="#validate_user.login_id[1]#">
<cflocation url="#the_return_url#">

but when it returns to that url, the original code still fails and 
seems to think that you're not logged in.  Oddly, if the return url 
is "../index.cfm" then it seems to work.  Just not when it's coming 
from the other url.  I tried refreshing the page to see if it was 
just not updating but that doesn't help.

Please, any thoughts would help.

-- 

Daniel Kessler

Department of Public and Community Health
University of Maryland
Suite 2387 Valley Drive
College Park, MD  20742-2611
301-405-2545 Phone
www.phi.umd.edu



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:213733
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to