This guide shows how to adjust the directory on the server that session files are stored in. Session files are temporary files that contain information generated when a user visits a site. These files may have a .sem extension and are occasionally created in the document root. Security plugins like Wordfence may flag them at times, which can be prevented by adjusting the location of session file storage.
Related Article
WordPress Error: Memory Exhausted
Change Directory for Session Files Storage
- Confirm the creation and location of the files match the warning
- In File Manager, search for "*.sem" or review the error encountered for a file path
- In File Manager, search for "*.sem" or review the error encountered for a file path
- Locate any php.ini or .user.ini files with the string session.save_path within it
NOTE: This value should match where the session files have been seen. - Update the session.save_path value in the MultiPHP INI Editor. You will need to use the Editor Mode tab to change or add the following value
session.save_path = "/tmp"
NOTE: If there is no .user.ini or php.ini, create a .user.ini and set the value manually.
Comments
0 comments
Article is closed for comments.