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


Please Help Members By Posting Answers For Below Questions

Tell me what are magic methods?

530


Can you convert php to html?

529


How to access a global variable inside a function?

532


How can MYSQL functions be available with PHP?

549


Write a statement to show the joining of multiple comparisons in php?

532






How escape single quotes php?

484


What is the importance of parser in php?

606


Is php used anymore?

523


What Is a Persistent Cookie?

612


How to get the number of characters in a string?

567


How can you create a session in php?

527


How do you remove whitespace from the beginning and end of a $string variable?

498


What are the different filter functions used to filter a variable?

528


Which function would you use to format date information in php?

548


how to use http headers inside php? Write the statement through which it can be added?

507