redis两个程序之间的session数据会互串的情况
PHPz
PHPz 2017-04-27 09:03:34
0
3
1152

有2个程序A和B,都使用redis来存储session。
如果A先启动,再启动B,B会提示无法反序列化,找不到A的某个类。

有没什么大神解释解释?

PHPz
PHPz

学习是最好的投资!

reply all(3)
洪涛

The two programs should distinguish the keys used to store sessions, such as adding a different prefix a_ or b_, etc.

给我你的怀抱

You should have distinguished between A or B, right?

PHPzhong

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!