Drupal can't create sessions and can't delete tmp files

I saw in the /tmp dir many files created by www-data user, and Drupal can't delete it.

I think that sessions doesn't work too because the same reason.

Any suggestion?

1 Reply

Session files are normally controlled by the web server not applications. The /tmp/sess_* files should be owned by the user that the web server runs under.

Applications use the web server to manage the sessions they create and change.

If you are having problems in Drupal, looking at the error logs will give you a better idea of what is happening.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct