login limit for particular company

Posted by Swaroopa under ASP.NET on 6/26/2012 | Points: 10 | Views : 895 | Status : [Member] | Replies : 4
Hi,

I am developing one application related to jobportl, am having a problem
i need to give login limit for particular company, how to restrict login limit for particular company using c#.net.

Thanks
Swaroopa

Swaroopa


Responses

Posted by: .Netlearner on: 6/26/2012 [Member] Starter | Points: 25

Up
0
Down
For a company 3 times for a particular day or what criteria ?

Swaroopa, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: .Netlearner on: 6/26/2012 [Member] Starter | Points: 25

Up
0
Down
Do u save date and the companyid when the company logs in

Swaroopa, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: .Netlearner on: 6/26/2012 [Member] Starter | Points: 25

Up
0
Down
Have a seperate table for login history

store the login date, company id

According to your conditions execute the query such as having count(companyid) for a particular day. if it crosses ur limit just displays an warning message and stops from logging in


Swaroopa, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Bhupentiwari on: 6/26/2012 [Member] Starter | Points: 25

Up
0
Down

Maintain login history. Table(autoid,userid,logintime,logouttime,date)

Evry time when company logs in fire select query from login history table with condition (todays date and cpmany id) and then

compare if returns more then three records then dont allow else allow.



Thanks n Regards
Bhupendra Tiwari

Swaroopa, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response