session_save_path
-
- New Member
- Posts: 3
- Joined: Wed Feb 13, 2008 11:47 pm
session_save_path
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
Put this in your .htaccess
php_value session.save_path "/path/to/your/tmp/or/sessions/directory"
php_value session.save_path "/path/to/your/tmp/or/sessions/directory"
-
- New Member
- Posts: 3
- Joined: Wed Feb 13, 2008 11:47 pm
Re: session_save_path
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?
-
- New Member
- Posts: 3
- Joined: Wed Feb 13, 2008 11:47 pm
Re: session_save_path
[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]
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
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
Last edited by Bigge on Sun Apr 20, 2008 6:08 pm, edited 1 time in total.
Re: session_save_path
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.
"The art of life lies in a constant readjustment to our surroundings." -Okakura Kakuzo
--
LinkedIn profile
--
I only speak/write in English so I may not translate well on International posts.
--
--
LinkedIn profile
--
I only speak/write in English so I may not translate well on International posts.
--