Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to clear session of all users?

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

like image 925
SomeUser Avatar asked Dec 02 '25 01:12

SomeUser


1 Answers

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.

like image 127
a'r Avatar answered Dec 03 '25 14:12

a'r



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!