Skip to main content

Error: 'Invalid CSRF token'

Resolve errors where users can’t log in, submit forms, or approve absences due to an invalid CSRF token.

C
Written by Charlotte Alderson

If you see the error “Form was submitted with an invalid CSRF token”, the issue is usually caused by an expired session or outdated browser data.

📌 Note: This issue affects login, approvals, and unplanned absence submissions.

Try signing in again

  • Log out of the system.

  • Close the browser.

  • Sign in again, then retry the action.

This resolves most session-related issues.


Check for session timeout

The error can occur if:

  • The user has been inactive for a long period.

  • The session expires before submitting a form.

To avoid this:

  • Refresh the page before submitting.

  • Complete actions promptly after signing in.


Clear browser cache and cookies

If the issue continues:

  1. Open your browser settings.

  2. Clear cached files and cookies.

  3. Restart the browser.

  4. Sign in again.

📌 Note: This removes stored credentials that can cause conflicts.


Try a different browser

  • Open TeamSeer in a browser you haven’t used before.

  • Sign in and attempt the action again.

This helps confirm if stored data in the original browser is causing the issue.


Understand the cause

This error usually happens when:

  • Stored login credentials are outdated.

  • A password has recently changed.

  • The system is using an expired session token.


Confirm the fix

After completing the steps:

  • Retry the original action (login, approval, or submission).

  • Confirm the error no longer appears.

Did this answer your question?