URL.CFID confusing sessions

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default URL.CFID confusing sessions

    Where do I start? When going to any of our web sites, the home page comes up
    and i the URL I have a CFID and CFTOKEN URL vars. On this same home page I
    have a sign in box. People sign in, get verified and appear to be signed in.
    They then go to pages that are restricted and find they're not. They've signed
    in under one session id, the one that was in the URL originally?, and now have
    a different session. Everything works fine, provided I click on the home page
    again when I lose the URL.CFID parm. So I thought of a workaround. In the
    home.cfm code, I put a conditional, if isdefined('url.cfid'), redirect to the
    same page but with addtoken='no'. Problem is, even if CFID is NOT visible on
    the command line, it is still THERE technically. Anyone have a better way of
    managing sessions? Oh, using CF6.1MX but also MX7 if necessary. Robert

    cf_code_warrior Guest

  2. Similar Questions and Discussions

    1. CFTOKEN and CFID
      Hi all: My english is not pretty good but i will try to explain myself. I have an IIS web server and CFMX Server installed on it. In IIS i have a...
    2. Getting rid of cfid and cftoken cookies...
      I am trying to make session on my page, but avoid the use of cfid and cftoken cookies. I am using the attribute setclientcookies="no" in my...
    3. CFID is predictable
      CFID is predictable, always incremented by 3. We can randomize CFTOKEN by using UUID. Is there a way we can randomize CFID too?:confused;
    4. I'm confusing myself
      Hiyer, I've used Flash for creating CD-Roms but Ive been asked to design a web site. I'm now getting myself really confused too. I want to add in...
  3. #2

    Default Re: URL.CFID confusing sessions

    Hello,

    I also use session variables. And everytime I use them, I added a CFLOCK tag
    to prevent race conditions.

    <cflock scope="session" type="exclusive" timeout="10">
    <cfset session.LoggedIn = "True">
    <cfset session.UserID = #Trim(User_ID)#>
    </cflock>

    I don't know if this is gonna help you....

    I could be wrong but as far as I know
    CFID and CFTOKEN is created as soon as you access the webpage.
    Note: Only if you put the session management = yes in the cfapplication tag or
    if you enable the session variables in CF Administrator.


    CF_N_Montreal Guest

  4. #3

    Default Re: URL.CFID confusing sessions

    I ALWAYS used to use locks too. Recently at a CFMX6.1 3 day workshop I
    attended, I was told that beginning MX, there was no longer a need. So I've
    recently NOT been. I also automatically have sessionamnagement to yes always.
    Thanks.

    cf_code_warrior 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