Page 1 of 1
session_save_path
Posted: Thu Feb 14, 2008 12:05 am
by SeanFromIT
I am using the latest version of CMSMS. I need to change the session_save_path on every PHP page in order to get PHP sessions to work on my hosting provider. Is there a single file in CMSMS that I can change this in, or do I need to add the path change to the top of every .php file?
Re: session_save_path
Posted: Thu Feb 14, 2008 1:14 am
by nivekiam
Put this in your .htaccess
php_value session.save_path "/path/to/your/tmp/or/sessions/directory"
Re: session_save_path
Posted: Fri Feb 15, 2008 10:53 pm
by SeanFromIT
No dice...generates a 500 Internal Server Error if I create a .htaccess file like that and drop it in the CMSMS directory. Any other ideas?
Re: session_save_path
Posted: Fri Feb 15, 2008 10:59 pm
by SeanFromIT
[solved] I added session_save_path ('/path/to/tmp/'); to the beginning of include.php and I can now get into the admin interface.
Re: session_save_path [solved for me]
Posted: Sun Apr 20, 2008 5:24 pm
by Bigge
That did´nt make it that simple.
But I added this in a .htaccess file
php_value session.save_path /tmp
php_value session.cookie_path /
And I´m in!
I guess the cookie_path needed another path then save_path
Re: session_save_path
Posted: Sun Apr 27, 2008 3:47 am
by JohnnyB
just a note.. you have to use php.ini files in place of php flags or directives in .htaccess when your server has PHP run from CGI.