This is such a fun problem...you need to set a cookie!
Try this (notice that I add SETTOKEN to my Search
Engine Safe URLS so that when it hits this code in my
APP_GLOBALS.CFM it triggers and sets the cookie:
<CFIF ISDEFINED("ATTRIBUTES.SETTOKEN")>
<CFIF ISDEFINED("attributes.CFID")>
<CFSET url.cfid="#attributes.cfid#">
<CFSET url.cftoken="#attributes.cftoken#">
</CFIF>
<cfcookie Name="CFID" value="#URL.CFID#">
<cfcookie Name="CFToken" value="#URL.CFToken#">
</CFIF>
-----Original Message-----
From: Edward Chowdhury [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 02, 2001 6:40 PM
To: Fusebox
Subject: Search Engine safe urls and CFID/CFTOKEN
Hi all,
My site has a mixture of search engine safe and
regular urls. When trying to
login without cookies enabled I find that the CF
server finds my session
only if I try a regular url but not if I use the
search engine safe urls. I
assume this is because when the CF application server
sees
cfid=234&cftoken=564577 it knows to find the
appropriate session from the
registry or memory. However when it sees
cfid/234/cftoken/564577 it just
ignores it and doesn't bother retrieving the session
information attached to
the CFID/CFTOKEN combo. My question is how do I tell
Cold Fusion to look for
the session info.
I've tried manually setting the following combos in my
app_globals.cfm right
after CF_FormUrl2Attributes
<CFIF IsDefined("attributes.cfid") and
IsDefined("attributes.cftoken")>
<CFSET client.cfid = attributes.cfid>
<CFSET client.cftoken = attributes.cftoken>
also:
<CFSET session.cfid = attributes.cfid>
<CFSET session.cftoken = attributes.cftoken>
and:
<CFSET url.cfid = attributes.cfid>
<CFSET url.cftoken = attributes.cftoken>
</CFIF>
What else can I do to tell Cold Fusion that these
variables exist??
thanks,
edward chowdhury
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists