Reputation: 159
I have made a Laravel session variable. How do I set the timeout / lifetime of this?
I want to change the timeout of this session variable only.
Session::put('abc', $a);
Upvotes: 3
Views: 234
Reputation: 477
you can go to : .env or config/session.php and change SESSION_LIFETIME OR do like below: Session::put('abc', $a , $LIFETIME);
Upvotes: 1