That is helpful, I'll use it in my apps thanks. But I'm still failing to
grasp what I need to understand to apply your technique. If CF generates a
URLTOKEN for each session, how do I use that token, which exists whether or
not you logged in, to equate to "this user has successfully logged in"? Do I
need to store the URLTOKEN in a database and just replace it each time the
user logs in? This then raises Erik Schaareman's issue of timing out. On a
public terminal, until you close the browser, anyone could use the account,
right?

I think part of the void in my understanding relates to client and session
variables. I can't seem to find a list of available variables.

Thanks much for your help.

Steve Kelley
SRKelley Enterprises, Inc.
www.HollywoodPaws.com
[EMAIL PROTECTED]

-----Original Message-----
From: Steve Nelson [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 16, 2001 6:27 PM
To: Fusebox
Subject: Re: FuseBox Replacement of Cookies


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