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

Make a "dynamic drop down list" with using only PHP,HTML and MySQL..

2 Answers  


Explain some of the php array functions?

0 Answers  


how to upload more than 50 mb? i tried but session was expired....certain time .....i was set session duration three days .... how to rectified? if any one know that post ur answer as soon as possible?already i was increase php.ini and set Also increase Memory_limit Post_max_size upload_max_filesize..........but not working......

0 Answers  


What is the difference between php and core php?

0 Answers  


1.Where are the cookies storing ? 2.What is the drawback of using cookies ? 3. If two site is having same cookie name and different values what will be the output if we echo the cookie name from those sites ? How can we solve this issue (How can we specify the domain name)?

8 Answers   TCS,


Which PHP function would you use to send an email?

0 Answers  


Why using the htaccess file

2 Answers  


Explain what are psrs?

0 Answers  


Is array a key php?

0 Answers  


Tell us what is the difference between session_unregister() and session_unset()?

0 Answers  


How does header() work . What do they tell the server same question for SESSIONS

2 Answers   Yahoo,


What is difference between readonly and constant?

0 Answers  


Categories