How to clean temporary sessions in Apache

0

I have an Apache server which is storing user sessions on files in a folder.

php.ini

[Session]
session.save_handler = files
session.save_path = "/tmp"

But in the "/ tmp" folder it has several files and is causing me some problems. Can I comment on session.save_handler? Will it interfere with the use of sessions on the site?

    
asked by anonymous 07.06.2016 / 01:46

1 answer

0

To remove the files and subdirectories from the directory:

cd /tmp
rm -rf *
    
07.06.2016 / 01:56