search

Home  >  Q&A  >  body text

WeChat development - laravel5.1 does WeChat authorized login

There is already a database. Now when the user opens the webpage through the public service account, the webpage obtains the user's information. There is already the user's information in the database. How to log in? Do you use SESSION to log in? Determine whether there is a SESSION. If not, just log in. If not, go to the authorization page to obtain user information and then store the SESSION user's information? Is this the idea? Can anyone give me some guidance on how to change it? Will the user remain logged in?

ringa_leeringa_lee2781 days ago872

reply all(2)I'll reply

  • 天蓬老师

    天蓬老师2017-05-16 16:58:09

    If you use WeChat to log in, you can get some unique parameters of WeChat to simulate the user’s login status

    reply
    0
  • ringa_lee

    ringa_lee2017-05-16 16:58:09

    WeChat webpage authorization has an openid, which is the only way for fans to identify this official account.

    reply
    0
  • Cancelreply