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

uddin9live's avatar

my site suddenly getting TokenMismatchException error

the site was running almost 3 months with no issue now im getting TokenMismatchException error

try it http://paystubsonline.net/easy-paystub-paid user id uddin9live@gmail.com password helalhq6

but the site is working fine on my local computer on wamp

pls tell what do i do

0 likes
11 replies
d3xt3r's avatar

All of a sudden? Or you updated the Laravel version ???

uddin9live's avatar

i know it's related with the hosting service as a copy of the site is working fine on my local wamp.

d3xt3r's avatar

Your crsf token is changing on every refresh, check if session cookie is being set and the session info is persisted to whatever storage you are using. This is what is causing the TokenMismatchException.

bashy's avatar

No laravel session is being set?

uddin9live's avatar

yes generating files on storage/framework/sessions

uddin9live's avatar

im using shared hosting dont know what did they update

d3xt3r's avatar

Might be related to varnish, i don't see any laravel specific cookie being set. Ask you hosting provider.

Please or to participate in this conversation.