php - expire account if they have not logged in -
i need expire account after 3 months if have not logged in website. how can automatically address in code it? how can address automatically delete user database within 3 months in php language ?
you have 2 options:
run cron job selects users have not logged in 3 months, , marks accounts deleted (don't delete them imho, maybe residual data)
when user logs in, check last login time, , if it's greater 3 months, return error , force them register.
Comments
Post a Comment