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

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -