Re: CFID/CFTOKEN newbie question

2004-03-02 Thread Jeff Garza
I beleive that the only solution you have is to pass #URLTOKEN# in every link on the site.

Cheers,

Jeff Garza
Manager, Phoenix CFUG
[EMAIL PROTECTED]
  - Original Message - 
  From: Howie Hamlin 
  To: CF-Talk 
  Sent: Tuesday, March 02, 2004 2:25 PM
  Subject: CFID/CFTOKEN newbie question

  Is there a best practice for handling CFID/CFTOKEN for browsers w/o cookies?

  Thanks,

  Howie
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: CFID/CFTOKEN newbie question

2004-03-02 Thread Burns, John
And you have the option to add the token in cflocations or you can just
append #urltoken# to the end of the link.

John 

-Original Message-
From: Jeff Garza [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 02, 2004 4:31 PM
To: CF-Talk
Subject: Re: CFID/CFTOKEN newbie question

I beleive that the only solution you have is to pass #URLTOKEN# in every
link on the site.

Cheers,

Jeff Garza
Manager, Phoenix CFUG
[EMAIL PROTECTED]
  - Original Message -
  From: Howie Hamlin
  To: CF-Talk
  Sent: Tuesday, March 02, 2004 2:25 PM
  Subject: CFID/CFTOKEN newbie question

  Is there a best practice for handling CFID/CFTOKEN for browsers w/o
cookies?

  Thanks,

  Howie
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: CFID/CFTOKEN newbie question

2004-03-02 Thread Ubqtous
John,

On 3/2/2004 at 16:41, you wrote:

BJ> And you have the option to add the token in cflocations or you can
BJ> just append #urltoken# to the end of the link.

If client management is enabled in the application, the cflocation
attribute addtoken="yes" will append CFID/CFTOKEN automatically.

~ Ubqtous ~
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: CFID/CFTOKEN newbie question

2004-03-02 Thread Howie Hamlin
Bah - that's what I thought.  So, how do you determine if the user has cookies or not before you go through the trouble of adding them to the url?

Thanks,

Howie
  - Original Message - 
  From: Burns, John 
  To: CF-Talk 
  Sent: Tuesday, March 02, 2004 4:41 PM
  Subject: RE: CFID/CFTOKEN newbie question

  And you have the option to add the token in cflocations or you can just
  append #urltoken# to the end of the link.

  John 

  -Original Message-
  From: Jeff Garza [mailto:[EMAIL PROTECTED] 
  Sent: Tuesday, March 02, 2004 4:31 PM
  To: CF-Talk
  Subject: Re: CFID/CFTOKEN newbie question

  I beleive that the only solution you have is to pass #URLTOKEN# in every
  link on the site.

  Cheers,

  Jeff Garza
  Manager, Phoenix CFUG
  [EMAIL PROTECTED]
    - Original Message -
    From: Howie Hamlin
    To: CF-Talk
    Sent: Tuesday, March 02, 2004 2:25 PM
    Subject: CFID/CFTOKEN newbie question

    Is there a best practice for handling CFID/CFTOKEN for browsers w/o
  cookies?

    Thanks,

    Howie
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: CFID/CFTOKEN newbie question

2004-03-02 Thread Howie Hamlin
I have client management enabled but I don't want to see the CFID/CFTOKEN in the URL unless necessary.   What's the best way of testing whether the client supports cookies before adding the URLTOKEN to every link?

Thanks,

Howie
  - Original Message - 
  From: Ubqtous 
  To: CF-Talk 
  Sent: Tuesday, March 02, 2004 4:48 PM
  Subject: Re: CFID/CFTOKEN newbie question

  John,

  On 3/2/2004 at 16:41, you wrote:

  BJ> And you have the option to add the token in cflocations or you can
  BJ> just append #urltoken# to the end of the link.

  If client management is enabled in the application, the cflocation
  attribute addtoken="yes" will append CFID/CFTOKEN automatically.

  ~ Ubqtous ~
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: CFID/CFTOKEN newbie question

2004-03-02 Thread Stephen Hait
> Bah - that's what I thought.  So, how do you determine if the user
> has cookies or not before you go through the trouble of adding them
> to the url?



	cookies not enabled code here


HTH,
Stephen
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: CFID/CFTOKEN newbie question

2004-03-02 Thread Brendan Avery
Here's a _javascript_ function I wrote for you so you can automatically
pop the URLToken on all links for a given host.  It may do the trick for
you.  Just include it on every page (works well as a footer include or
running on a body tag's onLoad event.)


	<br>
	AppendURLTokens('HOST NAME (I.e.) Domain Name Goes<br>
Here','#URLToken#);<br>
	


<br>
function AppendURLTokens(host,urltoken) {<br>
	var linkRef;<br>
	for(i=0;i<document.links.length;i++) {<br>
		linkRef=document.links[i];<br>
		if(linkRef.host==host) {<br>
			if(linkRef.search=='') {<br>
linkRef.href="">
			}<br>
			else {<br>
linkRef.href="">
			}<br>
		}<br>
	}<br>
}<br>


-Original Message-
From: Howie Hamlin [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 02, 2004 3:52 PM
To: CF-Talk
Subject: Re: CFID/CFTOKEN newbie question

I have client management enabled but I don't want to see the
CFID/CFTOKEN in the URL unless necessary.   What's the best way of
testing whether the client supports cookies before adding the URLTOKEN
to every link?

Thanks,

Howie
  - Original Message - 
  From: Ubqtous 
  To: CF-Talk 
  Sent: Tuesday, March 02, 2004 4:48 PM
  Subject: Re: CFID/CFTOKEN newbie question

  John,

  On 3/2/2004 at 16:41, you wrote:

  BJ> And you have the option to add the token in cflocations or you can
  BJ> just append #urltoken# to the end of the link.

  If client management is enabled in the application, the cflocation
  attribute addtoken="yes" will append CFID/CFTOKEN automatically.

  ~ Ubqtous ~
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: CFID/CFTOKEN newbie question

2004-03-02 Thread Brendan Avery
Oops I missed an apostrophe in the function call: here's the fix:

	<br>
	AppendURLTokens('HOST NAME (I.e.) Domain Name Goes<br>
Here','#URLToken#');<br>
	


-Original Message-
From: Brendan Avery [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 02, 2004 4:27 PM
To: CF-Talk
Subject: RE: CFID/CFTOKEN newbie question

Here's a _javascript_ function I wrote for you so you can automatically
pop the URLToken on all links for a given host.  It may do the trick for
you.  Just include it on every page (works well as a footer include or
running on a body tag's onLoad event.)


	<br>
	AppendURLTokens('HOST NAME (I.e.) Domain Name Goes<br>
Here','#URLToken#);<br>
	


<br>
function AppendURLTokens(host,urltoken) {<br>
	var linkRef;<br>
	for(i=0;i<document.links.length;i++) {<br>
		linkRef=document.links[i];<br>
		if(linkRef.host==host) {<br>
			if(linkRef.search=='') {<br>
linkRef.href="">
			}<br>
			else {<br>
linkRef.href="">
			}<br>
		}<br>
	}<br>
}<br>


-Original Message-
From: Howie Hamlin [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 02, 2004 3:52 PM
To: CF-Talk
Subject: Re: CFID/CFTOKEN newbie question

I have client management enabled but I don't want to see the
CFID/CFTOKEN in the URL unless necessary.   What's the best way of
testing whether the client supports cookies before adding the URLTOKEN
to every link?

Thanks,

Howie
  - Original Message - 
  From: Ubqtous 
  To: CF-Talk 
  Sent: Tuesday, March 02, 2004 4:48 PM
  Subject: Re: CFID/CFTOKEN newbie question

  John,

  On 3/2/2004 at 16:41, you wrote:

  BJ> And you have the option to add the token in cflocations or you can
  BJ> just append #urltoken# to the end of the link.

  If client management is enabled in the application, the cflocation
  attribute addtoken="yes" will append CFID/CFTOKEN automatically.

  ~ Ubqtous ~
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: CFID/CFTOKEN newbie question

2004-03-02 Thread Dave Watts
> > Bah - that's what I thought.  So, how do you determine if the user
> > has cookies or not before you go through the trouble of adding them
> > to the url?
> 
> 
> 
> 	cookies not enabled code here
> 

You can't effectively test for the existence of a cookie on the same page in
which you set the cookie. You can only test for its existence on subsequent
pages.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
phone: 202-797-5496
fax: 202-797-5444
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: CFID/CFTOKEN newbie question

2004-03-02 Thread Jamie Jackson
You have to pass around cfid/cftoken in the URL, but I believe that
URLSessionFormat() will take some of the tedium out of it:
http://livedocs.macromedia.com/coldfusion/6/CFML_Reference/functions-pt2113.htm#4471249

Jamie

On Tue, 2 Mar 2004 16:25:11 -0500, in cf-talk you wrote:

>Is there a best practice for handling CFID/CFTOKEN for browsers w/o cookies?
>
>Thanks,
>
>Howie
>
>
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: CFID/CFTOKEN newbie question

2004-03-02 Thread Ubqtous
Stephen,

On 3/2/2004 at 17:15, you wrote:

SH> 
SH> 
SH> cookies not enabled code here
SH> 

The cookie isn't actually set until the page request setting the
cookie completes; however, Cold Fusion makes the cookie value
available during the page request. This means that the check for the
cookie value has to occur on a subsequent page request to be of use.

~ Ubqtous ~
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: CFID/CFTOKEN newbie question

2004-03-02 Thread Matt Robertson
is URLSessionFormat() for CF6+ only, or did it show up in CF5?

--
---
 Matt Robertson, [EMAIL PROTECTED]
 MSB Designs, Inc. http://mysecretbase.com
---

--
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: CFID/CFTOKEN newbie question

2004-03-02 Thread Ben Doom
MX only.  When I had to write for both, I wrote a very simple UDF so 
that it worked in the code.

Basically, look to see if the contents contain a '?'.  If so, append the 
CFID and CFTOKEN with ampersands.  Else, the first one gets a questionmark.

--Ben Doom

Matt Robertson wrote:

> is URLSessionFormat() for CF6+ only, or did it show up in CF5?
> 
> --
> ---
> Matt Robertson, [EMAIL PROTECTED]
> MSB Designs, Inc. http://mysecretbase.com
> ---
> 
> --
>
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: CFID/CFTOKEN newbie question

2004-03-02 Thread Butch Zaccheo
I don¹t see it in the CF5 Reference

BZaccheo

On 3/2/04 3:03 PM, "Matt Robertson" <[EMAIL PROTECTED]> wrote:

> is URLSessionFormat() for CF6+ only, or did it show up in CF5?
> 
> --
> ---
>  Matt Robertson, [EMAIL PROTECTED]
>  MSB Designs, Inc. http://mysecretbase.com
> ---
> 
> --
> 
>
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: CFID/CFTOKEN newbie question

2004-03-02 Thread Debbie Dickerson
It was introduced in CFMX.
http://www.macromedia.com/support/coldfusion/ts/documents/cfmlhistory.htm
 

  _  

From: Matt Robertson [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 02, 2004 6:04 PM
To: CF-Talk
Subject: Re: CFID/CFTOKEN newbie question

is URLSessionFormat() for CF6+ only, or did it show up in CF5?

--
---
Matt Robertson, [EMAIL PROTECTED]
MSB Designs, Inc. http://mysecretbase.com
---

-- 
  _
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: CFID/CFTOKEN newbie question

2004-03-02 Thread Andrew Scott
Actually no its not, you can also pass them via a hidden input into forms
instead of that.

Regards
Andrew Scott
Technical Consultant

NuSphere Pty Ltd
Level 2/33 Bank Street
South Melbourne, Victoria, 3205

Phone: 03 9686 0485  -  Fax: 03 9699 7976   

  _  

From: Jeff Garza [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, 3 March 2004 8:31 AM
To: CF-Talk
Subject: Re: CFID/CFTOKEN newbie question

I beleive that the only solution you have is to pass #URLTOKEN# in every
link on the site.

Cheers,

Jeff Garza
Manager, Phoenix CFUG
[EMAIL PROTECTED]
  - Original Message - 
  From: Howie Hamlin 
  To: CF-Talk 
  Sent: Tuesday, March 02, 2004 2:25 PM
  Subject: CFID/CFTOKEN newbie question

  Is there a best practice for handling CFID/CFTOKEN for browsers w/o
cookies?

  Thanks,

  Howie 
  _
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: CFID/CFTOKEN newbie question

2004-03-02 Thread Stephen Hait
> > > Bah - that's what I thought.  So, how do you determine if the
> > > user has cookies or not before you go through the trouble of
> > > adding them to the url?
> > 
> > 
> > 
> > 	cookies not enabled code here
> > 
> 
> You can't effectively test for the existence of a cookie on the same
> page in which you set the cookie. You can only test for its
> existence on subsequent pages.
> 
> Dave Watts, CTO, Fig Leaf Software

Ah! Right. Thanks for making that point.
Stephen
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: CFID/CFTOKEN newbie question

2004-03-02 Thread Stephen Hait
> Stephen,
> 
> On 3/2/2004 at 17:15, you wrote:
> 
> SH> 
> SH> 
> SH> cookies not enabled code here
> SH> 
> 
> The cookie isn't actually set until the page request setting the
> cookie completes; however, Cold Fusion makes the cookie value
> available during the page request. This means that the check for the
> cookie value has to occur on a subsequent page request to be of use.
> 
> ~ Ubqtous ~

Thanks for clarifying that.
Stephen
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: CFID/CFTOKEN newbie question

2004-03-03 Thread Burns, John
Right, that's what I meant is the addtoken attribute.

John 

-Original Message-
From: Ubqtous [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 02, 2004 4:48 PM
To: CF-Talk
Subject: Re: CFID/CFTOKEN newbie question

John,

On 3/2/2004 at 16:41, you wrote:

BJ> And you have the option to add the token in cflocations or you can 
BJ> just append #urltoken# to the end of the link.

If client management is enabled in the application, the cflocation
attribute addtoken="yes" will append CFID/CFTOKEN automatically.

~ Ubqtous ~
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: CFID/CFTOKEN newbie question

2004-03-03 Thread Dave Watts
> > 
> > 
> > cookies not enabled code here
> > 
>
> The cookie isn't actually set until the page request setting the
> cookie completes; however, Cold Fusion makes the cookie value
> available during the page request. This means that the check for the
> cookie value has to occur on a subsequent page request to be of use.

While you're absolutely right about having to check for the cookie's
existence on a subsequent page, whether CF makes the cookie value available
during the page request is dependent on what version of CF you're using. It
does this with CFMX, but I don't think it does with CF 5, and I'm pretty
sure it doesn't with earlier versions.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
phone: 202-797-5496
fax: 202-797-5444
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: CFID/CFTOKEN newbie question

2004-03-03 Thread Burns, John
Well, something for everyone to consider is that there are government
institutions who are locking down machines to the point that they won't
accept cookies.  I work for a gov't contractor doing stuff for the Navy,
and we can't use cookies on our applications because of the new computer
systems being installed (NMCI).  I'm getting to the point now, that I'm
thinking it might just be easier to do apps without using cookies.  Why
do a check for cookies and do one thing and without them do something
else.  If you're going to take the time to code something else, just go
that way.  Those are just my thoughts out of frustration for computers
that don't accept cookies.  It makes things so much easier.

John Burns 

-Original Message-
From: Howie Hamlin [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 02, 2004 4:50 PM
To: CF-Talk
Subject: Re: CFID/CFTOKEN newbie question

Bah - that's what I thought.  So, how do you determine if the user has
cookies or not before you go through the trouble of adding them to the
url?

Thanks,

Howie
  - Original Message -
  From: Burns, John
  To: CF-Talk
  Sent: Tuesday, March 02, 2004 4:41 PM
  Subject: RE: CFID/CFTOKEN newbie question

  And you have the option to add the token in cflocations or you can
just
  append #urltoken# to the end of the link.

  John 

  -Original Message-
  From: Jeff Garza [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, March 02, 2004 4:31 PM
  To: CF-Talk
  Subject: Re: CFID/CFTOKEN newbie question

  I beleive that the only solution you have is to pass #URLTOKEN# in
every
  link on the site.

  Cheers,

  Jeff Garza
  Manager, Phoenix CFUG
  [EMAIL PROTECTED]
    - Original Message -
    From: Howie Hamlin
    To: CF-Talk
    Sent: Tuesday, March 02, 2004 2:25 PM
    Subject: CFID/CFTOKEN newbie question

    Is there a best practice for handling CFID/CFTOKEN for browsers w/o
  cookies?

    Thanks,

    Howie
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: CFID/CFTOKEN newbie question

2004-03-03 Thread Burns, John
I'm not sure that will work.  If it's on the same page, all of that is
processed on the CF side and it assumes that the cookie is set even
though it hasn't made it back to the user's machine yet.  You'd have to
set the cookie on one page, and redirect to another page that checks to
see if the cookie is still there and make the decision that way.  Note
that you can't cfcookie followed by a cflocation in anything before CFMX
6.1.

John Burns 

-Original Message-
From: Stephen Hait [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 02, 2004 5:16 PM
To: CF-Talk
Subject: Re: CFID/CFTOKEN newbie question

> Bah - that's what I thought.  So, how do you determine if the user has

> cookies or not before you go through the trouble of adding them to the

> url?

 
COOKIE.cookieTest NEQ "test">
	cookies not enabled code here


HTH,
Stephen
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: CFID/CFTOKEN newbie question

2004-03-03 Thread Ubqtous
John,

On 3/3/2004 at 09:32, you wrote:

BJ> Right, that's what I meant is the addtoken attribute.

Sorry, my mental syntax checker was a little too literal when I read
your comment :)

~ Ubqtous ~
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: CFID/CFTOKEN newbie question

2004-03-03 Thread Ubqtous
Dave,

On 3/3/2004 at 09:43, you wrote:

DW> While you're absolutely right about having to check for the
DW> cookie's existence on a subsequent page, whether CF makes the
DW> cookie value available during the page request is dependent on
DW> what version of CF you're using. It does this with CFMX, but I
DW> don't think it does with CF 5, and I'm pretty sure it doesn't with
DW> earlier versions.

I am 99.9% sure that CF5 allows you to access a cookie value on the
same page request that the cookie is set. I am not so sure about
CF4.5-...

~ Ubqtous ~
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: CFID/CFTOKEN newbie question

2004-03-03 Thread Burns, John
I agree.  I am 99.9% positive that CF5 allowed that.  I went through the
whole cookie checking dilemma a couple of years ago and I was using CF5
and I'm pretty sure this was true.

John 

-Original Message-
From: Ubqtous [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 03, 2004 10:44 AM
To: CF-Talk
Subject: Re: CFID/CFTOKEN newbie question

Dave,

On 3/3/2004 at 09:43, you wrote:

DW> While you're absolutely right about having to check for the cookie's

DW> existence on a subsequent page, whether CF makes the cookie value 
DW> available during the page request is dependent on what version of CF

DW> you're using. It does this with CFMX, but I don't think it does with

DW> CF 5, and I'm pretty sure it doesn't with earlier versions.

I am 99.9% sure that CF5 allows you to access a cookie value on the same
page request that the cookie is set. I am not so sure about CF4.5-...

~ Ubqtous ~
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]