Jump to content

Archived

This topic is now archived and is closed to further replies.

xRhysx

Automatic Deletion (MySQL Data)

Recommended Posts

Soon I will be making a membership system for my website. I will be requiring users to activate their accounts incase of a fake email address. I'm not quite sure how to make the users account delete itself within 24 hours if it is not not activated. Like the Invision Power Board does, it asks you to activate your account within 24 hours or it's deleted.

 

Thanks for any help.

Share this post


Link to post
Share on other sites

Just write a little function that gets ran everytime someone logs into your site, other members would be helping you with some house keeping and not even know about it.

 

If you need help writing that script, why not first take a shot at it on your own and then ask if you get stummped, it's a great way to learn

Share this post


Link to post
Share on other sites

Also check what you host supports. You could setup a cron job to run every 24 hours which will run the function to check and delete memberships.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.