What does a session have to do with <cflocation>

Ask a Question related to Macromedia ColdFusion, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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...
    2. 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...
    3. 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...
    4. 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...
    5. 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...
  3. #2

    Default 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>
    If you want session management without requiring cookies to be activated
    then you need to have CFID and CFTOKEN passed around with each request.

    --
    <mack />


    Neculai Macarie Guest

  4. #3

    Default Re: What does a session have to do with <cflocation>

    > If you want session management without requiring cookies to be activated
    > then you need to have CFID and CFTOKEN passed around with each request.
    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'?


    BKBK Guest

  5. #4

    Default Re: What does a session have to do with <cflocation>

    > > If you want session management without requiring cookies to be activated
    > > then you need to have CFID and CFTOKEN passed around with each request.
    >
    > 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.

    --
    <mack />


    Neculai Macarie Guest

  6. #5

    Default 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'?
    > 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]

    BKBK Guest

  7. #6

    Default 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'?
    >
    > > 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]
    You are correct. As far as I know the cflocation/cookie bug is fixed in
    CFMX, so it depends on the CF version that you're using.

    --
    <mack />


    Neculai Macarie Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139