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.



How to restrict the number of users login ? For ex:- if the allowed login is 10, for 11th user, the..

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

Post New Answer

More PHP Interview Questions

What is a path Traversal?

0 Answers  


What is namespaces in PHP?

0 Answers  


What is the difference between exception::getmessage and exception::getline?

0 Answers  


How can we create a database using PHP and mysql?

4 Answers   Rushmore Consultancy,


how to store date to database

5 Answers   ConSim,


How we can get the number of elements in an array?

0 Answers  


What are magic methods?

0 Answers  


How to connect to a url in php?

0 Answers  


How can we display information of a variable and readable by a human with php?

0 Answers  


Why triggers are used in mysql?

0 Answers  


Does php have multiple inheritance?

0 Answers  


Is empty in php?

0 Answers  


Categories