> If you want to use session variables and you want to
> anticipate users not having cookies turned on is it correct
> then that you would need to use a SESSION.URLToken and not
> just a URLToken appended to each link?
>
> Why doesn't just having URLToken work? I tried it and I can't
> access the session variables but when I use SESSION.URLToken
> in the links then the session variables are available.
I know that the name of the variable that you'd want to reference would be
Session.URLToken. To the best of my knowledge, there's no local variable
called URLToken. Your code would look like this:
<cflock scope="session" type="readonly" timeout="2" throwontimeout="no">
<a href="myotherpage.cfm?<cfoutput>#Session.URLToken#</cfoutput>">
</cflock>
If you weren't using Session variables, but were using Client variables, you
could reference Client.CFID and Client.CFTOKEN:
<cfoutput>
<a href="myotherpage.cfm?CFID=#Client.CFID#&CFTOKEN=#Client.CFTOKEN#">
</cfoutput>
> What about having both session and client management on at
> the same time? Which token would you use then?
Both would share the same token. However, you may want to rethink using both
at the same time, as it's usually not necessary.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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