session_save_path

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
SeanFromIT
New Member
New Member
Posts: 3
Joined: Wed Feb 13, 2008 11:47 pm

session_save_path

Post 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?
nivekiam

Re: session_save_path

Post by nivekiam »

Put this in your .htaccess
php_value session.save_path "/path/to/your/tmp/or/sessions/directory"
SeanFromIT
New Member
New Member
Posts: 3
Joined: Wed Feb 13, 2008 11:47 pm

Re: session_save_path

Post 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?
SeanFromIT
New Member
New Member
Posts: 3
Joined: Wed Feb 13, 2008 11:47 pm

Re: session_save_path

Post 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.
Bigge

Re: session_save_path [solved for me]

Post 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
Last edited by Bigge on Sun Apr 20, 2008 6:08 pm, edited 1 time in total.
JohnnyB
Dev Team Member
Dev Team Member
Posts: 731
Joined: Tue Nov 21, 2006 5:05 pm

Re: session_save_path

Post 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.
"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.
--
Locked

Return to “[locked] Installation, Setup and Upgrade”