5 Replies Latest reply on May 28, 2014 6:28 PM by jbird5k

    CFID CFTOKEN URL 404 ERROR

    codyw725

      We have a program that was wrote by a programmer whom is no longer with us.  When I go to log in to the program for the first time, after I put in my username and password and hit sign in I receive a "404 - File or directory not found error."  All I do is hit the back button and login again and it logs me in just fine.  I noticed when the error appears I'm getting a CFID and CFTOKEN added to the end of the URL.  When I'm able to login successfully it just takes me straight to index.cfm

       

      Can anyone tell me why its doing this and how to fix it?  Its just annoying to have to login twice everytime.  Thanks

        • 1. Re: CFID CFTOKEN URL 404 ERROR
          Carl Von Stetten Adobe Community Professional & MVP

          @Codyw725,

           

          My first thought is that your login processing page has a <cflocation> tag with the "addtoken" attribute set to yes.  If you do, try setting it to no and see if that solves it.

           

          -Carl V.

          • 2. Re: CFID CFTOKEN URL 404 ERROR
            BKBK Adobe Community Professional & MVP

            codyw725 wrote:

             

              I noticed when the error appears I'm getting a CFID and CFTOKEN added to the end of the URL.  When I'm able to login successfully it just takes me straight to index.cfm

            There are potentially 4 URLs involved here:

             

            1. The URL to which the CFID and CFToken are appended;
            2. The action page of the login form (Look into the code);
            3. The page to which the user is sent when the login fails;
            4. The index.cfm page.

             

            It would be of interest to know whether 1. and 2., or whether 1. and 3., refer to the same page.

            • 3. Re: CFID CFTOKEN URL 404 ERROR
              codyw725 Level 1

              I'm kind of a noob to the programming world.  What should I be looking for in the code?  I'm looked for CFID and CFTOKEN statements, but haven't seen any.  Is this someting in the coldfusion admin interface or in the actual program itself?  Sorry for the noob questions.

              • 4. Re: CFID CFTOKEN URL 404 ERROR
                BKBK Adobe Community Professional & MVP

                ColdFusion probably added the session tokens automatically. What I meant in 1. was: the URL corresponding to the "404 File Not Found", minus the CFID and CFToken.

                • 5. Re: CFID CFTOKEN URL 404 ERROR
                  jbird5k Level 1

                  We had a similar issue when we converted from cf 9 to cf 10,  for us simply  setting the  add token attribute to NO cleared up the problem for us.

                  1 person found this helpful