Replies: 1 comment 1 reply
|
I have now found where the authenticity tokens get generated. It appears to occur in the tag where this code was placed inside wrapper tags:
That tag block containing that call is in the /views/layout.cfm file. So it's not clear to me yet why the error occurs when in fact the new.cfm page load from redirect or from a manual reload of the page would make any difference because layout is used for both situations. No conditions are placed around this code that generates the csrf authenticity token. |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I'm running into this error after auto logout has occurred and during the first subsequent login. If I reload the login page first, then all is well. But if I login from the login page that I was redirected to from the logout action, then I get this:
The login submits a new.cfm page (the login page) form that has a controller.action of sessions.create. But this error occurs for /sessions (that's what shows in the url for this error) and has not even reached the create action yet. I know because I put a writedump and abort in the create and it is not hit.
Clearly, a normal page reload clears up the problem but going from the redirect after logout is, I believe, removing the token from session. I don't know where that token is normally being generated and added to the session scope. I don't know why the redirect to the new.cfm page doesn't recreate that token but a subsequent normal reload of the new.cfm does generate it.
Any suggestions welcomed here.
All reactions