Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CFID & CFTOKEN

Status
Not open for further replies.

aleci

Programmer
May 22, 2001
40
GB
Hi,
Ive read many threads in tek-tips concerning session variables and CFTOKEN/CFID's etc.
From what i understand, if you wish to use session variables in an application, you must consider the case where the user may have cookies disabled on their browser.

This is because the session is 'tied' to the CFID and CFTOKEN cookies automatically generated and maintained by CF.

To allow for the cookies disabled scenario, you should pass the CFID & CFTOKEN cookies to all pages in your application - via URL, Forms etc...

(Hope this is correct so far)

My question is as follows:
My CFID & CFTOKEN cookies are set on a page, index.cfm, which sets up frames. Does anybody know how to pass these cookies into the frames? Will it work if I simply add cfid=#cfid#&cftoken=#cftoken# to the and of the URL called in the frames?

Any help/advice greatly appreciated!

 
Actually, just add #URLToken# to the href, like:

<cfoutput><a href=&quot;somepage.cfm?#URLToken#&quot;>Some Page</a></cfoutput>

and yes, it should work just fine in frames. You'll notice that URLToken translates to the desired CFID and CFToken values. John Hoarty
jhoarty@quickestore.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top