[Vuejs]-How to expire a session in Laravel SPA "laravel_session" cookie?"

0👍

If you are using cookies to manage the session, your .env file should look like this:

SESSION_DRIVER=cookie

You can also define the session lifetime below

SESSION_LIFETIME=120

Suggestion: set lifetime to 1 minute, do a login and wait to see if it expires. Let me know!

Leave a comment