Support the ongoing development of Laravel.io →
Authentication Session
Last updated 2 years ago.
0

If someone will need it - appereantly we can still use old $_SESSION variable. Don't know possible consequences though.

/* somewhere in your app - e.g. in 'auth' filter */
if (session_id() == '') {
    @session_start();
    /* or Session:start(); */
}
$_SESSION['isLoggedIn'] = Auth::check() ? true : false;
Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

YOzaz yozaz Joined 30 Apr 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.