Here I want OTP Session Time out Required. Wen I click the GenerateOtp Click Functionality In That Time Otp Is Generated . That OTP I want show The TimeOut like 30 sec.
Loading
Here I want OTP Session Time out Required. Wen I click the GenerateOtp Click Functionality In That Time Otp Is Generated . That OTP I want show The TimeOut like 30 sec.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Harshit PandeyPosted Nov 20, 2024, 10:21 AM
To implement an OTP (One-Time Password) generation functionality with a 30-second timeout, you can follow these steps:
Approach
Jayraj ChhayaPosted Nov 18, 2024, 11:50 AM
Hi
Have you called the below function in your code?
If not, call the function above and check again.
If the issue still exists, share the code you tried, and I’ll assist you.
Jagapathibabu BanothPosted Nov 18, 2024, 11:42 AM
but here not decrese the time why
Sangeetha SPosted Nov 18, 2024, 10:42 AM
OTP session timeout Example
Front end
.NET (Backend):
Jayraj ChhayaPosted Nov 18, 2024, 9:47 AM
To implement an OTP session timeout in a .NET application, you can utilize a combination of a timer and a simple user interface update.
In your front-end, you can use JavaScript to handle the countdown timer:
This implementation generates an OTP and starts a countdown timer, displaying the remaining time until expiration. After 30 seconds, the OTP is considered invalid.