Laravel uses session to access Wechat official account openid

Little Wechat official account project, which does not use composer packages such as easywechat, but is developed by pure source laravel

when obtaining openid, to determine whether url code, does not exist, header ("location:xxx") to exchange for code, and then curl to get openid, but after each time, you can save session directly, and you can also take it out. However, when you request other pages, the data in session does not exist. It is suspected that it may be due to the redirection problem that the same session, does not know how to handle it.

Dec.16,2021

session is per site. The same site is OK, you have to see if your site is different (write and check out the site), cookie configuration is not a problem. Normal will not go wrong, find out the reason, really can not use redis to save or directly save mysql. And why use session to save openid,? shouldn't it be saved like user information? Because openid will not change for the same official account, don't you have your own user system?

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b384ad-2c0f6.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b384ad-2c0f6.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?