Ask a Question related to Macromedia ColdFusion, Design and Development.
-
BKBK #1
What does a session have to do with <cflocation>
<cflock name="URLToken_lock" type="readonly" timeout="30">
<cflocation url="successful_signin.cfm?#session.URLToken#" addtoken="No">
</cflock>
BKBK Guest
-
CFlocation.
I?m interested to know whether it?s good practice to write long CF coded pages or segment CF code into several different CF pages and use cflocation... -
cflocation
Does anyone know a way to use cflocation to load a page into a specific target within a frameset? I am working with multiple framesets and I am... -
CFLocation and SSL
I am moving someone on a site from a form on an http or https. I post to a page that queries a DB and then redirects based upon the form post. The... -
Alternative to CFLOCATION
I used CFLOCATION in a number of areas of a secured application. My problem is that I have to pass query parameters in the URL, which I would like... -
Delay before cflocation
Some browsers may have Meta Refresh disabled, which may present a problem to users if there is a broad user base. Are there any alternatives to... -
Neculai Macarie #2
Re: What does a session have to do with <cflocation>
> <cflock name="URLToken_lock" type="readonly" timeout="30">
If you want session management without requiring cookies to be activated> <cflocation url="successful_signin.cfm?#session.URLToken#" addtoken="No">
> </cflock>
then you need to have CFID and CFTOKEN passed around with each request.
--
<mack />
Neculai Macarie Guest
-
BKBK #3
Re: What does a session have to do with <cflocation>
> If you want session management without requiring cookies to be activated
Yep. Agreed. Question is: Is it better to pass session variables around via a> then you need to have CFID and CFTOKEN passed around with each request.
query-string appended to the URL attribute value, with AddToken attribute set
to 'no'?
BKBK Guest
-
Neculai Macarie #4
Re: What does a session have to do with <cflocation>
> > If you want session management without requiring cookies to be activated
via a>> > then you need to have CFID and CFTOKEN passed around with each request.
> Yep. Agreed. Question is: Is it better to pass session variables aroundset> query-string appended to the URL attribute value, with AddToken attributeI think it's the same. Maybe the original programmer didn't know about> to 'no'?
AddToken.
--
<mack />
Neculai Macarie Guest
-
BKBK #5
Re: What does a session have to do with <cflocation>
>>> <cflock name="URLToken_lock" type="readonly" timeout="30">
...>>> <cflocation url="successful_signin.cfm?#session.URLToken#" addtoken="No">
>>> </cflock>
...>> Yep. Agreed. Question is: Is it better to pass session
>> variables around via a query-string appended to the URL
>> attribute value, with AddToken attribute set to 'no'?The question is not as trivial as you think.> I think it's the same. Maybe the original programmer
> didn't know about AddToken.
Sometimes Coldfusion does not pass session variables
to the URL in the cflocation tag, no matter whether you
set Addtoken to 'yes' or to 'no'. That is what motivated
my question. See for example
[url]http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_18171[/url]
BKBK Guest
-
Neculai Macarie #6
Re: What does a session have to do with <cflocation>
> >>> <cflock name="URLToken_lock" type="readonly" timeout="30">
addtoken="No">> >>> <cflocation url="successful_signin.cfm?#session.URLToken#"You are correct. As far as I know the cflocation/cookie bug is fixed in> ...> >>> </cflock>
> ...>> >> Yep. Agreed. Question is: Is it better to pass session
> >> variables around via a query-string appended to the URL
> >> attribute value, with AddToken attribute set to 'no'?>> > I think it's the same. Maybe the original programmer
> > didn't know about AddToken.
> The question is not as trivial as you think.
> Sometimes Coldfusion does not pass session variables
> to the URL in the cflocation tag, no matter whether you
> set Addtoken to 'yes' or to 'no'. That is what motivated
> my question. See for example
>
> [url]http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_18171[/url]
CFMX, so it depends on the CF version that you're using.
--
<mack />
Neculai Macarie Guest



Reply With Quote

