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 http get and post?
What is the difference between explode and split?
Give the case where we can use get and we can use post methods?
Does jwt protect against csrf?
How to create an array of a group of items inside an html form?
Explain Creating and Naming an Array?
Do you have to initialize variables in php?
Explain how we can get the number of elements in an array?
How we load all classes that placed in different directory in one php file , means how to do auto load classes.
Is php session id unique?
Explain the syntax for ‘foreach’ loop with example.
What does csrf token mean?
Explain NULL?
What is the difference between null and empty?
What is a path Traversal?