Toni

As far as i know the cfid and cftoken are what the coldfusion server uses to
identify your session and distinguish it from other requests for pages from
other users so you wouldnt want to store the cfid and cftoken as session
variables, the coldfusion server would need to be supplied with a cfid and
cftoken value (either in cookies or on the url) to reference a particular
session variable.

If you are building an intranet site or a site where you have some control
over the environment
of your visitors you can force them to switch on cookies if they want to use
your site.

KOla

-----Original Message-----
From: Toni Trape [mailto:[EMAIL PROTECTED]]
Sent: 08 May 2001 12:29
To: Fusebox
Subject: RE: Advantages of use cfid and cftoken?



>CFID and CFTOKEN are just references to information held in memory or in
the
>client datasource.  Giving a URL with the CFID and CFTOKEN to someone else
>will give them the information to retrieve that data in much the same way
as
>a URL with say mysite.com/index.cfm?fuseaction=dspProduct&ProductID=23 will
>display the product number 23 from your database.

Ok. It's a good way to describe the functionality.
Now i understand it better.
Thanks.

>You don't _have_ to pass the CFID and CFTOKEN on the URL, because this
>information is stored in a cookie on the users computer.  However, if the
>user does not have cookies enabled then the session will not be maintained,
>because CF will not be able to write to/read from the cookie containing the
>CFID and CFTOKEN for that session.  This why it is recommended that you
>include the CFID and CFTOKEN on URLs.

If visitor accept cookies the problem is solved.
If visitor don't accept cookies, can i store cfid & cftoken in a session
variable to no have to pass the CFID and CFTOKEN on the URL?
What are the problems of session variables? Client  vs Session variables?

>There are ways that you can determine whether a user has cookies enabled or
>not and then decide whether to append the CFID and CFToken to the URL.

Can you tell me where can i find some ways to determine that?

Thanks

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