Technote Details :: When using session data, I get an error message on page

Issue

When dealing with session data on a windows based web server, a warning is sometimes displayed: Warning: open(/tmp\sess_fe507fc0ae04fb760b48d904e6a127ac, O_RDWR) failed: m (2) in filename.php on line #line

Reason

This happens because the path where the session files are saved on the server does not exist. The path is kept as a setting in the php.ini file.

Solution

To allow session data to be saved correctly, you can do one of the following:

  1. Create the <WINDIR>\temp folder on your system. Replace the <WINDIR> with the correct path to your Windows folder (e.g. c:\windows)
  2. Open the php.ini file. Set the desired path as the value for the session.save_path option. (e.g. session.save_path = c:\temp) After saving the changes, restart the web-server for the modifications to take effect.

Home > Support > Knowledge Base > Technote Details
Search the Knowledge Base
© Adobe Systems Romania. All rights reserved.