Answers for "unset session value in laravel"

PHP
0

session flush laravel

// Forget a single key...
$request->session()->forget('name');
// Forget multiple keys...
$request->session()->forget(['name', 'status']);

$request->session()->flush();
Posted by: Guest on April-23-2021
6

destroy session php

<?php 
 session_start(); // start session
 session_destroy();  // Delete whole session
// OR
unset($_SESSION['username']); // delete any specific session only
?>
Posted by: Guest on June-15-2020
1

how to clear session in laravel

# ref: https://laravel.io/forum/02-06-2014-session-destroy

Session::forget('yourKeyGoesHere') // Removes a specific variable
Posted by: Guest on April-07-2021

Browse Popular Code Answers by Language