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
How to update memcached when you make changes to php?
What does the function get_magic_quotes_gpc() means?
What is the use of 'print' in php?
How to include variables in double-quoted strings?
Is php pass by reference or value?
What is csrf token and how it works?
How does php session work?
What is an array in php?
how to open & closing opening period in fico
What is the role of php?
What is whitespace in php?
What are properties in php?
How to upload file in php?
What is local variable in php?
What Is a Persistent Cookie?