How to clean temporary sessions in Apache

Asked

Viewed 1,073 times

0

I have an Apache server which is storing user sessions in 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 interfere with the use of sessions on the site?

1 answer

0


To remove files and subdirectories from the directory:

cd /tmp
rm -rf *
  • And deleting the temporary session files will interfere with the use on the site?

  • Well, interfering with the use of the site is a complex term (interfere in what sense?), I believe that not because it is a temporary file folder, you can move the files and if you do not change anything deletes.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.