How to access the globals $_SESSION and $_COOKIE from a laravel app?
cookies, frameworks, laravel, php, session
Solution
Laravel has its own implementations of `$_SESSION` and `$_COOKIE`, so I'm afraid you cannot access them via those superglobals.
To try to overcome that, what you can do, in your Laravel app, is to transfer data from one to the other by doing something like:
foreach(Session::all() $key => $value)
{
$_SESSION[$key] = $value;
}
Problem
I am working on a laravel project that needs to work besides a custom php project, because that I need to get access to the pure php globals $_SESSION and $_COOKIE in the laravel app. Until now I'm geting just null or empty. Somebody know how to do that?