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
Does wordpress run on php 7?
What are the variables in php?
What does empty mean in php?
How do you use bcrypt for hashing passwords in php?
What is html used for?
Why is php used?
What is isset function in php?
With a heredoc syntax, do I get variable substitution inside the heredoc contents?
Tell me what is the use of "enctype" attribute in a html form?
What is abstraction php?
How can we display the output directly to the browser?
How to convert a json string to an array in php?
How to remove the new line character from the end of a text line?
Can I include php in javascript?
What is difference between post and put in rest?