Hello,
One of the possible options is to add the code found
here to the logon Web part, as well as a custom field in the
CMS_User table that stores the expiration date. On logon you could set the expiration date to X days in the future. Once this is set up, you could create a scheduled task that regularly checks expiration dates. The recommended approach for dealing with users past expiration date is to disable them (Uncheck IsEnabled) or remove from the roles in the UI instead of the database; however, it is also possible to automate this task by
Scheduling Custom Code.
Please let us know if this is an acceptable solution and if you need any further clarification.
Best Regards,
Sandro Jankovic