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();