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 |
What is the default time of cookie in php?
Tell me is it possible to remove the html tags from data?
How to make database connection in php?
What is the difference between the include() and require() functions?
When sessions ends?
Different between the var_dump() and print_r()?
How to make multilanguage site in php? (like english,tamil)
Is php still in demand?
What is different types of visibility?
What's the best method for sanitizing user input with php?
What is the difference between characters 23 and x23?
How to create an array of a group of items inside an html form?