Joke Collection Website - Public benefit messages - Where is the verification code generally stored after PHP sends it?
Where is the verification code generally stored after PHP sends it?
After sending the verification code, the user is allowed to perform the next step on another page, which may be another session, so it is not appropriate to save it in the same session.
After sending the verification code, the user is also allowed to have a certain operation time limit, such as being valid within 24 hours. Then you have to ensure that the user enters the same verification code within 24 hours and it must work. Generally, redis is only used as a buffer database without persistence. Restarting will cause the saved data to be lost. A large amount of buffered data may also overwrite old data, and the availability of the verification code cannot be guaranteed.
So, storing it in a durable database is a safer approach. Mysql is ok, of course Redis can also be persisted
- Previous article:How does Urumqi bank card bind WeChat?
- Next article:Haha, is SMS binding safe?
- Related articles
- Tanabata Valentine's Day Classic SMS Blessing
- What does classmark change mean in GSM layer 3 signaling?
- How can girls get the sense of security they want?
- How to maintain health in autumn? Things to note when eating meat in autumn
- Can I receive the short message sent by others for the arrears of China mobile phone card?
- Failure to show the amount of deduction, being questioned to raise fees, etc. are frequently vomited.
- What does ABC think about whether to open SMS reminders?
- Tik Tok Tik Tok Tik Tok How do you handle your information? How did you change the speaker to mobile phone mode?
- Can ambiguous text messages prove cheating?
- Download the national anti-fraud center app slogan banner?