0

While redirecting using the cflocation tag it is successfully passing to specified URL.
But the thing is I couldnt understand the use of ADDTOKEN attribute in this tag.Because redirection occurs independent of the Yes/No values of that attribute . Please can any one help me by providing a simple example? It would be much appreciated.

Edited by fiju: n/a

3
Contributors
2
Replies
3
Views
6 Years
Discussion Span
Last Post by arrgh
0

While redirecting using the cflocation tag it is successfully passing to specified URL.
But the thing is I couldnt understand the use of ADDTOKEN attribute in this tag.Because redirection occurs independent of the Yes/No values of that attribute . Please can any one help me by providing a simple example? It would be much appreciated.

I believe this is the wrong section to post this question. You are likely to get a quicker and more accurate answer in the Web Development > ColdFusion section.

Edited by TurcoLoco: n/a

1

Because redirection occurs independent of the Yes/No values of that attribute

The AddToken attribute relates to client/session management. It has no affect on redirection. Only what's passed in the url. When addToken="yes", CF appends several client tokens (cfid, cftoken and possibly jsessionid) as URL parameters

So this

<cflocation url="http://www.yoursite.com/path/to/products.cfm?productid=4" addToken="yes">

becomes

http://www.yoursite.com/path/to/products.cfm?productid=4&cfid=xxxx&cftoken=xxxx&jsessionid=xxxxx"

If addToken="no", CF doesn't append the extra parameters to the URL

Edited by arrgh: n/a

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.