Edit
by Melak Teshome - 5 years ago (2019-05-24)
when one user login with one account with two computer
| when one user login with one account with two computer he must be logout from one |
Ask clarification
2 Recommendations
This class is a wrapper to access MySQL databases using PDO.
It can connect to a given MySQL server using PDO and then can perform several types of database access operations. Currently it can:
- Perform arbitrary SQL queries
- Bind parameter values of prepared queries
- Retrieve all rows of query results into an array
- Retrieve a single row of query results into an array
- Retrieve the ID value of the last recorded inserted into a table
- Begin, end and cancel a transaction
| by Clement Sam package author 120 - 5 years ago (2019-07-16) Comment
You would need to do that on the database. Just store the session on the database so in case the user signs in on another you would be able to deal with it... |
This class implements a handler for storing session data in MySQL.
This is class based on Zebra_Session from Stefan Gabos that registers session handler functions to store and retrieve session data from MySQL databases using MySQLi.
It uses row locks to lock only individual session database table records while the current script session is being accessed.
| by Dave Smith 7620 - 5 years ago (2019-06-02) Comment
You would use a database to store the sessions so that you can check if a user is already signed in using another session. |