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

Does it possible to compile php with mysql without having mysql sources?

2 Answers  


How to Calculate Internal links & External Link in Website.(For Example YAHOO WEBSITE)

1 Answers  


Different between the var_dump() and print_r()?

4 Answers  


Why is php used for web development?

0 Answers  


what the new feature add in php 7.2?

0 Answers  






What is the meaning of a persistent cookie?

0 Answers  


What is $$ in php?

0 Answers  


How do you find the length of a string in php?

0 Answers  


What is the difference between the functions unlink and unset?

6 Answers  


> symbol is used to redirect the output of a command. State Whether True or False?

0 Answers  


Does php support multithreading?

0 Answers  


How come the code works, but does not for two-dimensional array of mine?

0 Answers  


Categories