PHP session.save_path error

PHP session.save_path error

You receive the following error in PHP:



"The session.save_path setting in your php configuration file (php.ini)
is not set or is set to a folder which did not exist. You might need to
set the save_path setting in php.ini or verify that the folder sets in
save_path exist."



To fix this on Linux:



1) Create a folder at the root of your account -- where you see the domain folders. -- called "sessions"

2) In the control panel go to Account --> Account Settings and copy the "Home Directory" value

3) Enter the following in the .htaccess file in the folder of the script: php_value session.save_path HOME_DIRECTORY/sessions

a) Replace "HOME_DIRECTORY" with the value you copied in #2

4) Save the .htaccess file and test the script.