Welcome Guest, Not a member yet? Register   Sign In
Counting users logins on separate devices

(03-08-2018, 12:33 PM)jreklund Wrote: 1. Save user id and session data in database after user clicks log in
2. Every page visit, check database on how many connection they are making
2.1. If value exceeded X then logout first session (or how many you want)
3. User visits again and they need to login again due to the session have been destroyed

Thank you for your input and advice,
What I'm concerned with this approach is adding a database call on each page would slow the site down..especially on a busy site.
Also I know how to check if there is a session for user logging in but how do I check if another users session exists in the database? If I canĀ  search in the session database for another users USERID then I could start a count.

Messages In This Thread
RE: Counting users logins on separate devices - by ZeroNine - 03-15-2018, 01:51 PM

Theme © iAndrew 2016 - Forum software by © MyBB