search

Home  >  Q&A  >  body text

redis两个程序之间的session数据会互串的情况

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

有没什么大神解释解释?

PHPzPHPz2812 days ago1202

reply all(3)I'll reply

  • PHP中文网

    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.

    reply
    0
  • 给我你的怀抱

    给我你的怀抱2017-04-27 09:05:34

    You should have distinguished between A or B, right?

    reply
    0
  • PHPz

    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

    reply
    0
  • Cancelreply