<code> session("phone","$PhoneNumber"); session("yanzhengma","$num"); S(session_id(),$_SESSION);</code>
Is that so?
How to get it
<code> session("phone","$PhoneNumber"); session("yanzhengma","$num"); S(session_id(),$_SESSION);</code>
Is that so?
How to get it
In the session configuration section of php.ini, directly set session.save_handler = redis
(pseudo setting), modify the corresponding configuration, and then use the session normally
You can take a look
https://segmentfault.com/q/1010000002419571
Two commonly used solutions
Use php’s redis extension
https://github.com/phpredis/phpredis
Use PHP native predis
https://github.com/nrk/predis/wiki