Support the ongoing development of Laravel.io →
Authentication Security
Last updated 1 year ago.
0

Extend your users table to store current session id and last login time. Whenever an user logs in, create a new session id and overwrite the session id and last login time in the table. Perform checks against the session id in the database whenever the user request a secured page. If it differs, then log the user out.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

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.