Support the ongoing development of Laravel.io →
Authentication Session

Hey everybody,

Trying to get CkFinder working. Was following these approaches (althogh marked as "SOLVED"):

http://forumsarchive.laravel.io/viewtopic.php?id=11909

None of them worked. Any idea, how to bring Auth:check() working in external library (which, in fact, is in /public directory)?

$app->boot() does not initialize Session data. $app->run() makes routing take place instead. Using WS call through cURL is not an option too - sessions do not match.

Any other ideas?

I believe someone had this issue before...

Last updated 3 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 3 years ago.
0

Sign in to participate in this thread!

PHPverse

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.

© 2025 Laravel.io - All rights reserved.