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 Posted / 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 View All Answers
What is difference between variable declaration and variable definition?
What is the importance of parser in php?
can we swap two different string using php for example:-- before swapping:-- 1 string :-hello friend, 2 string :-my dear, after swapping that strings will be: 1.hello dear, 2.my friend.
Can php replace javascript?
Explain the difference between unlink() and unset()?
How come the code works, but does not for two-dimensional array of mine?
Do you know what is the use of rand() in php?
What are the encryption techniques in php?
what is difference between PHP4 , PHP5
What is pdo in php why use?
Is php a float?
What are the different opening and closing tags available in PHP?
Is PHP an open source software?
How do I find environment variables?
What is design pattern? Explain all including singleton pattern?