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
Tell me what are magic methods?
Can you convert php to html?
How to access a global variable inside a function?
How can MYSQL functions be available with PHP?
Write a statement to show the joining of multiple comparisons in php?
How escape single quotes php?
What is the importance of parser in php?
Is php used anymore?
What Is a Persistent Cookie?
How to get the number of characters in a string?
How can you create a session in php?
How do you remove whitespace from the beginning and end of a $string variable?
What are the different filter functions used to filter a variable?
Which function would you use to format date information in php?
how to use http headers inside php? Write the statement through which it can be added?