email - How to make a link a period of time available php -


i want make sign , login system. have sign page verification mail, want verification link couple of hours can clikked. example if click on link 5 hours mail active, if click mail verification link clicked 6 hours email not activated. how do this?

there multiple ways can this.

the first way using timestamp determine when validation key has been issued, , once user attempts use it, check if current date surpasses time limit (based on issue timestamp), , validate it.

another way using jwt has expiration timestamp in it.


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -