Click here to Skip to main content
15,887,854 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
I create verification code entering page.need to add timer and once time is finish process re start.

What I have tried:

I tried one method for time but time is stopes nothing happed.
Posted
Updated 10-Jul-20 3:38am
Comments
Richard MacCutchan 10-Jul-20 4:46am    
Sorry, no one here can possibly guess what your code is doing. Please use the Improve question link above and add some proper details.
MadMyche 10-Jul-20 5:40am    
Please use the Improve Question widget and show us the code that is now working

1 solution

You don't.

Typically, the code you generate and put in the database is date/time stamped for when it was sent.

When the code is entered in the page, you check to see if the timestamp plus your timeout is greater than now. If it is, the code is still valid and you can redirect to the appropriate page. If it is NOT, then you can redirect to a page that says the code entered has expired and let the user decide what to do from there, or whatever.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900