laravel session destroyed when redirrect code example
Example 1: laravel destroy session
# ref: https://laravel.io/forum/02-06-2014-session-destroy
Session::forget('yourKeyGoesHere') // Removes a specific variable
Example 2: laravel session put method
Session::put('key', 'value');
session(['key' => 'value']);