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 / 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 |
How to set a value in session? How to remove data from a session?
How can we find the number of rows in a result set using PHP?
What is the use of pear in php?
Which have the fastest execution between mysql_fetch_array() and mysql_fetch_assoc()
What is the difference between get & post ?
What is the difference between rest and soap?
What is the scope of a variable defined outside a function?
Tell me how the result set of mysql be handled in php?
How do you explain independent and dependent variables?
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?
What are magic methods in php