In some situation we need session id. In Laravel 3 and Laravel 4.x we have predefined function by which we can get session id. In laravel 3 we will get session id:
Laravel 3:
$session_id =_COOKIE["laravel_session"];
Laravel 4.x:
$session_id = Session::getId();
By using this we will get session id.Here Session is a eloquent by the help of eloquent we will fetch session id in Laravel 4.x
0 Comment(s)