Aug 25, 2015
0
Level 1
Session issues with LaravelShoppingCart and CSRF Token
I am using https://github.com/Crinsane/LaravelShoppingcart in my laravel application, currently testing locally and use the default file session driver.
Sometimes, my cart becomes empty randomly.
Also have been facing issues with Csrf token. Almost half of my ajax requests gives TokenMismatchException. Its really weird. It wouldn't work and then on clicking it again might work with the same token again.
Am I missing any configurations to make laravel sessions last longer or for the csrf token? What if I do not use VerifyCsrfToken middleware?
Please or to participate in this conversation.