Created
July 8, 2015 15:21
-
-
Save phpdave/dbfc3cd8bd777cd34b79 to your computer and use it in GitHub Desktop.
Using different sessions per vhost - http://stackoverflow.com/questions/18262878/how-to-prevent-php-sessions-being-shared-between-different-apache-vhosts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<VirtualHost *:81> | |
DocumentRoot /var/www/xxx1 | |
<Directory "/var/www/xxx1"> | |
AllowOverride All | |
php_value session.save_path "/var/mysessionforproject_1" | |
</Directory> | |
</VirtualHost> | |
<VirtualHost *:82> | |
DocumentRoot /var/www/xxx2 | |
<Directory "/var/www/xxx2"> | |
AllowOverride All | |
php_value session.save_path "/var/mysessionforproject_2" | |
</Directory> | |
</VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment