How to restrict the number of users login ? For ex:- if the
allowed login is 10, for 11th user, the application should
restrict them from login.
Answer / abc
i will store session variable in database and every time when
user login, i will count no of session variable exists in
database, if it is more the 10 session variable , i will
generate error, otherwise i will let it login
Is This Answer Correct ? | 8 Yes | 5 No |
What is a path Traversal?
What is namespaces in PHP?
What is the difference between exception::getmessage and exception::getline?
How can we create a database using PHP and mysql?
4 Answers Rushmore Consultancy,
how to store date to database
How we can get the number of elements in an array?
What are magic methods?
How to connect to a url in php?
How can we display information of a variable and readable by a human with php?
Why triggers are used in mysql?
Does php have multiple inheritance?
Is empty in php?