search

Home  >  Q&A  >  body text

php - I have a design question. The company's official account was written in TP before. Now I want to keep the previous one unchanged and replace the modules added in the future with laravel.

The public account can only have one domain name. I retain the domain name of the previous TP, so how should I solve the problem of laravel session judging user information? Is there any good method?

世界只因有你世界只因有你2757 days ago594

reply all(1)I'll reply

  • 我想大声告诉你

    我想大声告诉你2017-05-31 10:35:17

    It is impossible to share sessions. If it is a simple process, it can be like this. After logging in to the main platform or after authorized login, assemble the username and password, echo js script, and script link corresponding to the login method of the laravel project and bring the login parameters. and token, perform login asynchronously, and write to session.

    echo '<script src="http://www.babc.com/login.php?token=asdfasdfasdfasdfasdfadsfasdfasd"></script>';

    reply
    0
  • Cancelreply