Summer Sale! All accounts are 50% off this week.

striker's avatar

laravel 5.0 how to remove session values from laravel session file

how to remove session values from laravel session file. Session::flush is not removing the session values from file

0 likes
2 replies
striker's avatar

In my config/session.php i have set this 'driver' => env('SESSION_DRIVER', 'file') and after I login in my application if I browse this folder storage/framework/sessions I can see an encrypted file with my session values, If I open this file i can see some code like this :

" a:4:{s:6:"_token";s:40:"8lEfVho2myH2jAb4dLITMhzmdsUHn1H0Ig0ljiR8";s:9:"_previous";a:1:{s:3:" "

now in logout code I am using Session::flush() but it is not removing my session variables and laravel says that session values exist.

Please or to participate in this conversation.