有2个程序A和B,都使用redis来存储session。
如果A先启动,再启动B,B会提示无法反序列化,找不到A的某个类。
有没什么大神解释解释?
PHP中文网2017-04-27 09:05:34
The two programs should distinguish the keys used to store sessions, such as adding a different prefix a_ or b_, etc.
PHPz2017-04-27 09:05:34
The sessions of different programs are placed in different libraries. For example, if A is placed in select(1), then B is placed in select(2). This way you can differentiate