deepak-rajpal
8/13/2015 - 1:19 PM

PHP session_start fails - Permission issue

PHP session_start fails - Permission issue

// Warning: session_start() [function.session-start]: open(\xampp\tmp\.....
// Solution: This means that you don't have the correct permissions to either read or write the files in the temp directory.
// Reference: http://stackoverflow.com/questions/670595/php-session-start-fails

// If you on linux then do this

sudo chmod -R 755 \xampp\tmp //or should it be 775

// On windows do this as an administrator

attrib -r -a C:\xampp\tmp /S