If you encounter the error message, ‘Invalid Token: Your session has probably expired', after submitting the login form, it typically means that the access token you are using has become invalid. This could happen for a couple of reasons:
- The session changed, so the validation key no longer matches
- A validation key was not included in the form that was submitted
To overcome the error caused by a session change:
- Clear the cookies and cache within the browser.
- Use a different browser.
- If you are using a mobile device for the password reset, try to use a desktop or laptop instead. Mobile browsers can sometimes fail to read the coding we use on our websites which can prevent them from recognizing the link.
To resolve the error caused by a missing validation key
Add the following hidden form field on ANY form that submits to the server:
<input type="hidden" name="authenticity_token" value="[dnCSRFToken value from javascript]">
Comments
0 comments
Please sign in to leave a comment.