[PHP] session cookie paths
Dear All, I've been trying to figure out a solution for this problem and have googled the subject but cannot come up with anything meaningful. I have several applications running on my server which use php and sessions. In each case, logging out from an application destroys the session. The trouble is that all the applications (four of them) share the same id: PHPSESSID and path: / My first hunch is to try to use .htaccess in each application's root directory to override these php.ini variables. Am I on the right track? Regards, Ian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] session cookie paths
Answered my own question. Creating an .htaccess file containing: php_value session.name uniqueSESSIONname takes care of the problem. On Wed, 2004-08-25 at 12:30, Ian Firla wrote: Dear All, I've been trying to figure out a solution for this problem and have googled the subject but cannot come up with anything meaningful. I have several applications running on my server which use php and sessions. In each case, logging out from an application destroys the session. The trouble is that all the applications (four of them) share the same id: PHPSESSID and path: / My first hunch is to try to use .htaccess in each application's root directory to override these php.ini variables. Am I on the right track? Regards, Ian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] session cookie paths
From: Ian Firla [EMAIL PROTECTED] Answered my own question. Creating an .htaccess file containing: php_value session.name uniqueSESSIONname takes care of the problem. You could also use -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] session cookie paths
From: Ian Firla [EMAIL PROTECTED] Answered my own question. Creating an .htaccess file containing: php_value session.name uniqueSESSIONname takes care of the problem. You can do this from within PHP by calling session_name() before session_start, also. You could also use set_cookie_params() in each of the scripts. http://www.php.net/manual/en/function.session-set-cookie-params.php ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php