Click here to Skip to main content
15,916,600 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi Good morning every one,

i want to block user login. suppose he was not logged in for three days . automatically user credentials got denied.

thankq in advance
Posted

Have a table that records the last successful user login (or every login if you like, then just query the last login as required).

Upon logging in, check this table (in addition to their user/password) and if the last login was more than 3 days ago, deny them access.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900