How to kill a/all php sessions?

后端 未结 9 1232
暖寄归人
暖寄归人 2020-11-28 10:07

I have a very basic php session login script. I want to force logout of a certain user or force logout of all users.

How can I read all sessions made to my website,

9条回答
  •  佛祖请我去吃肉
    2020-11-28 10:18

    Updated - Aug 2012

    This code is based from the official PHP site, and another well written snippet on SO.

    
    

    Works well. Servers like NGinx you can turn off, clean cache, swipe memory reset, clear logs etc and generally remove temp usage. Even drop the limits of memory.

提交回复
热议问题