Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7430197
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T09:06:01+00:00 2026-05-29T09:06:01+00:00

I am currently working on a registration based website, and I have the server

  • 0

I am currently working on a registration based website, and I have the server sending an activation email to the user upon registration. This is all done in PHP so, as you can imagine, I am using the mail() function.

This is all fine and dandy, once the user gets the email and clicks the activation link, the ‘active’ field that is in the ‘Users’ table is set to true. Here’s the problem though, in the case that a user does not confirm their email address, what am I to do?

I have thought of holding details like the date and time the user registers but I don’t know how to proceed with this data. How do I have the server automatically delete the user from the database after a set amount of time?

That’s what I think I should be asking, but in all honesty I don’t know the usual protocol…

Conclusion: Since Cron is for Unix based servers I’ve had to pass on it, but I found it very interesting that I could just use the Windows Task Scheduler that is built into Windows. This at least means I can test it on my PC before any server hosting. Thank you all

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T09:06:01+00:00Added an answer on May 29, 2026 at 9:06 am

    You should definitely store the date and time that the activation link was sent.

    There isn’t really a way to tell the server to automatically delete stale user data, but it’s easy enough to code up yourself. Assuming you have access to cron on your server, you can set up a cronjob to run (for example) every night at 2am and execute a PHP script that searches the database for users who were sent a link more than X days ago but never confirmed it

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently working on an app sending request on a server for a voting
I am currently working on a building community website in PHP. This contains forms
The project that I'm currently working on, is large scale. I'm using email activation
I'm currently working on the user registration in my project. After the registration is
Part of a website I am currently working on contains registration process where users
Currently working in the deployment of an OFBiz based ERP, we've come to the
I`m currently working on a script, and I have the following situation. function somnicefunction()
This is my application's current workflow for user registration. register form ( GET /register
Currently I have Windsor controller factory that is working well. However, I am changing
I have an app with C2DM currently implemented. I had it working to the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.