I run 10.0 with Apache. I have 2 virtual hosts, one for a CMS, one for a wiki. The CMS requires: php_value session.save_handler files The wiki requires: php_value session.save_handler user The problem is one PHP is set for one session save handle, it does not set for the next virtual host. Any suggestion on how to set it for each virtual host? httpd.conf .... <VirtualHost *:80> DocumentRoot /opt/htdocs/xxxx ServerName xxxx.com ErrorLog /opt/logs/xxxx.com-error_log CustomLog /opt/logs/xxxx.com-access_log common php_value session.save_handler files </VirtualHost> <VirtualHost *:80> DocumentRoot /opt/htdocs/yyyy ServerName yyyy.com ErrorLog /opt/logs/yyyy.com-error_log CustomLog /opt/logs/yyyy.com-access_log common php_value session.save_handler user </VirtualHost> -- Thanks
suse@911networks.com wrote:
I run 10.0 with Apache. I have 2 virtual hosts, one for a CMS, one for a wiki.
The CMS requires: php_value session.save_handler files The wiki requires: php_value session.save_handler user
The problem is one PHP is set for one session save handle, it does not set for the next virtual host.
Any suggestion on how to set it for each virtual host?
The only thing I can think of that might help would need a code change (I assume one or the other application is OS?). In the initialisation, make a call on session_set_save_handler() - see <http://uk2.php.net/manual/en/function.session-set-save-handler.php>. Luck, Colin
participants (2)
-
Colin Fraser
-
suse@911networks.com