Hi all,
I am trying to develop an invite only registration system. The only way to register is by following a generated link which will expire after a given time (let's say 12h). No user will have access to the base registration page (example.com/register.php), they will be redirected to the homepage no matter what. Right now I already have the whole user system working, but anyone can register by visiting the registration page.
Is there any solution to generate a URL (something like example.com/register.php/[random integer string]) and have it expire after a certain period of time regardless if a user follows it or not?
So in a few words:
- generate link (manually?)
- no one can access base file (register.php)
- link expires after 12h
Thanks for your time and help =)
I am trying to develop an invite only registration system. The only way to register is by following a generated link which will expire after a given time (let's say 12h). No user will have access to the base registration page (example.com/register.php), they will be redirected to the homepage no matter what. Right now I already have the whole user system working, but anyone can register by visiting the registration page.
Is there any solution to generate a URL (something like example.com/register.php/[random integer string]) and have it expire after a certain period of time regardless if a user follows it or not?
So in a few words:
- generate link (manually?)
- no one can access base file (register.php)
- link expires after 12h
Thanks for your time and help =)