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 stop the execution of php script?
what are the rules to be followed at the time of declaring a variable?,what is the purpose of var_dump()function in php,syntax of ternary operator()in php,difference between drop a table and truncate a table...
What does mvc stand for and what does each component do?
Suppose the variable $var1 is set to 10 and the $var2 is set to the character var1, what's the value of $$var2?
How do I run php?
How can you access a COM object from a PHP page?
How to replace a substring in a given string?
How do you remove duplicates from an array?
What are the 5 types of variables?
Tell me how do you define a constant?
What is mvc in php?
How arrays are used in php?