I have tried numerous times to use the CGI.SCRIPT_NAME variable to pass the
script called to the next page but I can not get it to work. Can you help
with the syntax? For example, <cflocation url=""> addtoken="yes">
If I used this in conjunction with the Application.cfm file and ran my check
for user login status in the Application.cfm file, would I still need to
check for the existence of the session variables? I ask because like before,
If you remove the added URL parameters from the link, it forgets the users
CFID and CFTOKEN settings. I thought that if they were already in a cookie
that the URL portion would not be required. And if they are still required
then why bother with setting the cookies for them?!?
Thanks,
Kevin
Magick by Design
_____
From: Bryan Stevenson [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 19, 2004 2:22 PM
To: CF-Talk
Subject: Re: CFID and CFTOKEN question
I never use CFID/CFTOKEN, but I've had similar issues due to sending users
through a cookie testing routine when they first hit the site....passing all
URL params and desired page info through the process.
In Application.cfm
-test for CFID/CFTOKEN exisitence
-IF NOT FOUND...
-grab where they were trying to go (file name and path...CGI.SCRIPT_NAME or
other CGI vars can be used here)
-grab the CFID/CFTOKEN you feel is correct
-stick path/file/CFID/CFTOKEN together ina valid URL
-CFLOCATION to send them to the page the URL they typed in
That all being said..there may be an easier way built into CFID/CFTOKEN
session managemnet that I am unaware of
HTH
Cheers
Bryan Stevenson B.Comm.
VP & Director of E-Commerce Development
Electric Edge Systems Group Inc.
phone: 250.480.0642
fax: 250.480.1264
cell: 250.920.8830
e-mail: [EMAIL PROTECTED]
web: www.electricedgesystems.com
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

