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.



How to restrict the number of users login ? For ex:- if the allowed login is 10, for 11th user, the..

Answer / 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

More PHP Interview Questions

How to set a value in session? How to remove data from a session?

0 Answers  


How can we find the number of rows in a result set using PHP?

4 Answers  


What is the use of pear in php?

0 Answers  


Which have the fastest execution between mysql_fetch_array() and mysql_fetch_assoc()

0 Answers  


What is the difference between get & post ?

0 Answers  






What is the difference between rest and soap?

0 Answers  


What is the scope of a variable defined outside a function?

0 Answers  


Tell me how the result set of mysql be handled in php?

0 Answers  


How do you explain independent and dependent variables?

0 Answers  


write code to find the date difference b/w two given date using PHP not MYSQL function?

3 Answers   HyperQuality, Synctra Solutions,


What is xss and csrf?

0 Answers  


What are magic methods in php

2 Answers   Net Solution,


Categories