Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Kirir's avatar
Level 1

TokenMismatchException. The token is.

Error TokenMismatchException. The token is always passed, for the field by default there. This error is displayed after a certain time and the current disappears after I reconnect admin (More users do not have). Some time later, she reappears and account for reconnecting.

0 likes
4 replies
SaeedPrez's avatar

I'm not sure I fully understand you but the if you leave a page open and the session times out then the request will fail and give TokenMismatchException.

Kirir's avatar
Level 1

I reload page but error error remains. The problem is solved only when I re-login.

SaeedPrez's avatar

Do you have any code or maybe a package that changes the session data somehow?

Please or to participate in this conversation.