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 |
How to delete cookie files on your computer?
How do you format and output a number with leading zero's?
how to get the value in script values
What is __ construct in php?
Does mysql need php?
A process can run only in the background. State Whether True or False?
What are the differences between php3 and php4 and php5? What is the current stable version of php? What advance thing in php7?
What is the function of trim?
How can we get the browser properties using PHP?
4 Answers Google, Pollux Softech,
What is the difference between apache and tomcat?
What is strlen function in php?
How are variables declared in php?