Closed Greekciti closed 10 years ago
I was playing around with this code on a shared Dreamhost account and I got the error below.
Warning: session_start(): open(/tmp/sess_ayMdXoBWZJLulJ43Ha5sk3, O_RDWR) failed: Permission denied
/classes/Login.php on line 29
I fixed this by creating a tmp folder in my home directory. I'm not sure if this is secure, probably not, but it worked. Found more info here (http://stackoverflow.com/questions/6821532/php-warning-permission-denied-13-on-session-start)
session_save_path('path/to/my/home/directory/tmp'); // create/read session, absolutely necessary session_start();
I was playing around with this code on a shared Dreamhost account and I got the error below.
Warning: session_start(): open(/tmp/sess_ayMdXoBWZJLulJ43Ha5sk3, O_RDWR) failed: Permission denied
/classes/Login.php on line 29
I fixed this by creating a tmp folder in my home directory. I'm not sure if this is secure, probably not, but it worked. Found more info here (http://stackoverflow.com/questions/6821532/php-warning-permission-denied-13-on-session-start)
session_save_path('path/to/my/home/directory/tmp'); // create/read session, absolutely necessary session_start();