Have any of you guys done a project that separates the front-end and back-end of php+vue.js? I would like to ask, the front-end sends a verification code to register and log in.
小萝卜头
小萝卜头 2020-05-25 11:21:12
0
5
1363

The front-end sends SMS verification code to log in and register. How to maintain the session? And should the SMS verification code be stored in the database or in the session? Or is there any other better solution?

小萝卜头
小萝卜头

reply all(4)
对方正在输入....

Save redis

唯you爱

If you don’t understand, you can ***Q: 895163012

唯you爱

This does not exist across domains, just use the SMS api interface callback, log in, usually session

  • reply The session will become invalid, and the session data cannot be retrieved by calling the interface in vue.js. Because the sessionid here is always changing and relies on cookies, it cannot be obtained! I switched to redis to send text messages. The problem has been solved. Thank you.
    小萝卜头 author 2020-05-26 15:51:41
小萝卜头

Because it involves cross-domain, the session will be invalid? What's the solution?

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template