IOS mobile phone verification code has recently been developed for an ios app project.
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.
Reply to discussion (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
It can be stored in the database and then called for processing.
It can be stored in the database and then called for processing.
Thank you very much. we have already done this. we use the database storage method.
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
Redis is not familiar with it, so it is only available for database storage.
Thank you very much.