Support the ongoing development of Laravel.io →
Authentication Session

Hi everybody,

just a hopefully short question: For a project we have several modules, old ones (coded in native OOP PHP) and new ones like features and so on. I like to develop the new ones with Laravel, but the problem is, that authentication is handled by the old stuff via sessions.

The question is: Is it possible to get (the old) sessions data when you know the session id in Laravel? I dont't want the user to log in twice. So My (Laravel) module needs information about the login status, stored in a session.

Last updated 3 years ago.
0

From the docs, why not check if a user is authenticated (logged in) using this:

if (Auth::check())
{
    // The user is logged in...
}
Last updated 3 years ago.
0

Hey Martijn,

thanks for the quick response. I know, that it is possible to check Laravel related Logins this way, but as I tried to explain, the session data is not stored by Laravel, but in the way of $_SESSION['loggedin'] = 1; The question is, how I can get information about that foreign data.

Last updated 3 years ago.
0

I am hitting this problem now too...

Any updates?

Thanks

Last updated 3 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

bart bart Joined 24 Mar 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.