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
Post a Comment