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

  ----- Original Message -----
  From: Kevin
  To: CF-Talk
  Sent: Thursday, August 19, 2004 11:12 AM
  Subject: CFID and CFTOKEN question

  Hi all,

  I have been working on my new application and I have found something that I
  need some help on. If a user who is logged in types in the URL to a page on
  my site without the CFID and CFTOKEN parameters then the site no longer
  recognizes them. I found a quick fix for this by testing for the
  session.CFID and session.CFTOKEN variables and if they exists setting the
  URL.CFID and URL.CTOKEN to those and all is well again. But I don't want to
  have to add this test to the top of all my pages. I tried to put it into the
  Application.cfm but that does not seem to pass them to the page called (i.e.
  index.cfm). Is there a better way to fix this problem?

  Thanks,

  Kevin

  Magick by Design
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to