Reputation: 497
Session is destroy automatically in laravel 5.1.
I am using laravel for server side and angularjs for client side.
I am using laravel session and for front end keep session data in root scope and window Storage. My application working fine but some times randomly session destroy.
i am facing problem of session automatic session destroy.
can you please help me for solve this problem ? what i missing ?
Thanks in advance.
Upvotes: 4
Views: 554
Reputation: 497
Finally I have solution for this issue. This is due to session driver file type when multiple request call in angularjs file read/write not properly. cause of this token missmatch error and session destroy. Now I have use database driver for storing session and my problem fixed
Upvotes: 1