Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
@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.
Copy link to clipboard
Copied
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:
It would be of interest to know whether 1. and 2., or whether 1. and 3., refer to the same page.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.