Hello Everyone,

Scenario:
I have an application where users are required to register to gain access. I want to set an 'automatic timer' on their access so that after 1 month, their access level is set to NULL (which would not allow them to log into the application).

Question:

  1. Can this be done in PHP?
  2. If it can, could you guide me as to what is needed to do this?

Thanks Much
May

If the users have to register, that would mean that you most probably have a database, why not add an account expiration column into the table and put a date/time 1 month from the time they register. When the user logs in check this field to see if their account is valid.

Cool...I'll try that way...I'll keep you posted...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.