If you pass a URLtoken in ALL of your urls <a> <form> and <cflocation>
tags you don't need to use cookies and you can still utilize client
variables.

What cookies allow you to do is have a "remember me" checkbox for your
users when they log in. that way they won't need to login again the next
time they come back to your site.

I've found that I get slightly faster performance (very minimal
difference) by copying client.urltoken over to request.urltoken, AND it
allows me to add additional variables to the URLtoken if necessary. 
This is how I do it:

<cfapplication clientmanagement="yes" name="whatever">
<cfset request.urltoken=client.urltoken>

<a href="index.cfm?#request.urltoken#">

<form action="index.cfm?#request.urltoken#">

</form>

<cflocation url="index.cfm?#request.urltoken#" addtoken="no">


Does that help?

Steve Nelson
Try my CFML code tester for free!
http://www.secretagents.com/tools/stomp/
(804) 825-6093


Steve Kelley wrote:
> 
> I read the section in the Nelson/Girard FB book concerning <cfapplication>
> and the issue of cookies (page 37) and don't quite grasp the entire issue. I
> understand how to implement the URLTOKEN, but don't understand how to
> implement this in replace of the cookies I currently use to determine if a
> user has successfully logged in during that session.
> 
> I'd appreciate someone filling in this gap in my understanding. Thanks.
> 
> Steve Kelley
> SRKelley Enterprises, Inc.
> www.HollywoodPaws.com
> [EMAIL PROTECTED]
> 
> Archives: http://www.mail-archive.com/[email protected]/
> Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

--

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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

Reply via email to