Posted 01 September 2006 - 11:59 AM
I would like to only limit the user to only login every 2 weeks for a period of 4 days. So for example, they can login in Saturday, Sunday, Monday and Tuesday, but from that Wednesday to 2 weeks later they are not allowed to login, it should go to a countdown page saying you have xx days until you can login again.
Confusing? I am a partial newbie, but am getting better at php. Let me know if there is anything else I can contribute to try and explain better.
Posted 14 September 2006 - 03:32 AM
Posted 14 September 2006 - 05:09 AM
you're either going to have set up a cron job to update everyone in your databases remaining usage time, every day
have it run a script to check that every time they log in....
If you just have a small based thing I would go with the second option
just add some code to your login script, where after they've successfully logged in
it runs a check to see if they have lapsed their limit yet or not...
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users