How to avoid Session Hijack if laravel_session and CSRF-Token stole and reuse ?
Dear Friends,
I am setting session life time as 120 seconds. How to avoid it by XSRF Unique for each request . I tried middleware method, but not working. Any body please help ...
my dashboard url like http://xx.x.yy.aaa/itCareers/public/index.php/Dashboard can access by stole laravel_session and CSRF-Token.
So, your session lifetime is 2 minutes. How is anyone expected to use the site? They can't spend two minutes reading a page to decide what to do next or they will be logged out? Or answer the phone? or go to the toilet etc.
Why don't you put up a notice that says "Not for customer access"
I think there's no problem here, laravel got your back when it comes to session Hijacking , it secures cookies and ensures it will be sent over https only , just make sure to use SSL certificate to encrypt the data between the server and the client.
you can increase the session lifetime as long as your app needs and don't worry about session hijacking.