How to clear session of all users?

后端 未结 2 1830
说谎
说谎 2021-01-20 17:35

I using php sessions in my project,i updated code:added some values to session.now i need to clear all existing sessions

ps.my OS is ubuntu 9.04

2条回答
  •  醉话见心
    2021-01-20 18:21

    By default PHP session information is stored in files under /tmp/. The filenames are usually prefixed with sess_. So removing these files would clear out the existing sessions. The php.ini file may have been altered to change the location of these files, so check it if you can't find the right files.

提交回复
热议问题