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 the correct and the most two common way to start and finish a php block of code?
How will you calculate days between two dates in PHP?
Is php dead 2019?
Tell us what does $_cookie means?
What are helpers in php?
Which php framework is best?
What are the features and advantages of object-oriented programming in php?
Why is facebook still using php?
What is session in php w3schools?
What are the different filter functions used to filter a variable?
What is difference between echo and print_r in php?
What function should you use to join array elements with a glue string?
How to join multiple strings stored in an array into a single string?
Explain PHP?
discuss the issue of software theft in ghana and how it has affected the economy