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 execute an sql query? How to fetch its result?

0 Answers  


Which is better mysql or sql?

0 Answers  


What is a php form?

0 Answers  


How to find out, how a user visited a particular page?

4 Answers   Yahoo,


What is $_ get and $_ post in php?

0 Answers  






How to add different images in php program like a job site.......

2 Answers  


What is split function in php?

0 Answers  


1. Create student database. 2. First page should display the students available in the database. There should be add, edit and delete buttons. 3. There should be option to search students by name, code, date of joining, department or combination of these. 4. Should have an add/edit screen. Add and Edit should be handled in the same page. 5. Delete should ask for confirmation before deleting the actual record. 6. Validation should be done in JavaScript as well as php.

0 Answers   Zonex,


Explain about image types in detail?

1 Answers   Aplora,


What is the name of the scripting engine that powers PHP?

0 Answers  


Are objects passed by value or by reference?

0 Answers  


How are sessions maintained?

0 Answers  


Categories