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

How to stop the execution of php script?

0 Answers  


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...

2 Answers  


What does mvc stand for and what does each component do?

0 Answers  


Suppose the variable $var1 is set to 10 and the $var2 is set to the character var1, what's the value of $$var2?

0 Answers  


How do I run php?

0 Answers  






How can you access a COM object from a PHP page?

1 Answers  


How to replace a substring in a given string?

0 Answers  


How do you remove duplicates from an array?

0 Answers  


What are the 5 types of variables?

0 Answers  


Tell me how do you define a constant?

0 Answers  


What is mvc in php?

0 Answers  


How arrays are used in php?

0 Answers  


Categories