Re: session_save_path

From: Date: Thu, 07 Oct 2004 16:23:48 +0000
Subject: Re: session_save_path
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-198855@lists.php.net to get a copy of this message
Ed Lazor wrote:
Can you do an .htaccess solution? If so, you could probably just set session save path with PHP_VALUE in the .htaccess file
Note, from my original message: Tried adding to htaccess: php_value session.save_path /www/u/username/htdoc/session Hoping it would override php.ini. Got a server error 500.
-----Original Message----- From: Al [mailto:news@ridersite.org] Sent: Thursday, October 07, 2004 8:25 AM To: php-general@lists.php.net Subject: [PHP] session_save_path My virtual host eliminated the common session tmp folder which forces me to set up one in my area. I'm trying to come up with the best, considering: Custom php.ini; resisting because having to make certain it is always in sync with host's changes. Tried adding to htaccess: php_value session.save_path /www/u/username/htdoc/session Hoping it would override php.ini. Got a server error 500. Tried adding to a common functions file used by several pages: session_save_path /www/u/user/htdoc/session; and session_save_path $_SERVER['DOCUMENT_ROOT'] . "/SESSION"; Doesn't work, uses the path in php.ini; I'm guessing that session_save_path has to be declared on page using session stuff. That's a pain, if so. Haven't tried ini_set yet; is it a solution? Thanks.... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.general (#198855) next »