Home > other >  How to retrieve session variables using session id in laravel
How to retrieve session variables using session id in laravel

Time:10-19

I am trying to develop an API interface where I get a session_id and I should return session details.I am using laravel 5.6.40.

CodePudding user response:

You can retrieve session variables by using session('keyName')

CodePudding user response:

you can use getId() method

session()->getId();

or

Session::getId();
  • Related