hii all, btw i want to make login system, and check if user is multiple login and give notification in current user login, how can i make it ?? can someone please suggest/teach me to make system like that? Previously I've searched for it on google but couldn't find the right one,, please help for my learning

حبيب commented: Bonjour moi c'est habib Hassaballah+23599954219 +0

When someone logs in, you would generate a token that is stored as a cookie in the web browser. That session cookie is also attached to the user ID in a session table in the database.

If the user attempts to log in from a different browser, where the session cookie doesn’t match the session table, then you know they’re already logged in elsewhere.

commented: Thank you +0
commented: Great point out +7
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.