Warning: session_start(): open .... failed - PHP error

By: CG  

If you encounter the following error using PHP under IIS: "Warning: session_start(): open .... failed", you need to grant "read/write" permissions to the "IUSR" on the directory listed in "session.save_path" (in "php.ini"). 

In Vista, do the following:
1. Right-click on folder defined in "session.save_path" in "php.ini" file. (ex: "C:\Windows\Temp")
2. Select "Properties"
3. Click "Security" tab
4. Click "Edit"
5. Click "Add"
6. Click "Advanced"
7. Click "Find Now"
8. Select "IUSR"
9. Click "OK"
10. Click "OK".
11. Under "Permissions for IUSR", ensure the following are checked:
- Read & execute
- List folder contents
- Read
- Write
12. Click "OK"
13. Click "Yes" to change the permissions
14. Click "OK"




Archived Comments


Most Viewed Articles (in PHP )

Get the next working day in PHP

PHP ./configure RESULTING IN [email protected]_2_2_3_... AND UNRESOLVED REFERENCES WITH ORACLE OCI8

__autoload() METHOD in PHP

Function to return number of digits of an integer in PHP

Function to sort array by elements and count of element in PHP

Execution Lifetime of a PHP script

Decrypting files using GnuPG (GPG) via PHP

Encrypting files using GnuPG (GPG) via PHP

GDBM, NDBM, DB2, DB3, DBM, and CDB Databases in PHP

Error: Length parameter must be greater than 0

PHP Warning: Unknown(): Unable to load dynamic library '/usr/local/php4/lib/php/extensions/no-debug ......

Using Text file as database in PHP

error: "Service Unavailable" after installing PHP to a Windows XP x64 Pro

Installing PHP with nginx-server under windows

Running different websites on different versions of PHP in Windows 2003 & IIS6 platform

Latest Articles (in PHP)

Comment on this tutorial