For IOS mobile phone verification code, I recently got an ios & nbsp; app & nbsp; Project. I have a question: Ask the mobile phone Terminal & nbsp; after entering the user's mobile phone number, call the backend verification code Sender program, the backend php sends a verification code text message to the user's mobile phone. how can I set the validity period of the verification code (120 s )? Use session_start? Session_start is not supported and the output data is empty. Or where did I get it wrong? why is the verification code on IOS?
I am working on an ios app project recently. I have a question.
After the mobile phone end enters the user's mobile phone number, it calls the backend verification code Sender program. The backend php sends a verification code text message to the user's mobile phone,
Excuse me:
How do I set the SMS verification code validity period (120 s )? Use session_start? Session_start is not supported and the output data is empty.
Or where did I make a mistake? the webpage debugging session records the information.
Please help. Thank you.
------ Solution ----------------------
1. use redis expire to set 120 s
2. submit the verification code to the background mobile phone number and verification code at the same time without session storage verification code
------ Solution ----------------------
It can be stored in the database and then called for processing.