Account Expiration in MySql
===

first, I apologize for bad English.
I am working on a site. I have users with registration and duration time is 6 month or one year. I save the registration time for each user. Now I user php to handle this situation. Each time the user login, I check username and password and also I check that the time after registration date is not over.
 Is there any way to use mysql to handle this automatically for me? 