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 |
Explain the difference between require() and require_once()?
What are the basic steps to store PHP session in to Database?
What is meant by an associative array?
Do you know what is the function mysql_pconnect() usefull for?
What is singleton class in php?
What does nan stand for computer science?
How to access a specific character in a string?
What are some of the advanced features of php?
How many types of php frameworks are there?
What is session php?
Explain me what is the use of 'print' in php?
How to convert strings to numbers in php?