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...
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;
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community