Answer the question
In order to leave comments, you need to log in
How to store multiple sessions for each site? Double demon?
php.d has these settings
session.save_path = "/tmp/php_sessions/www"
upload_tmp_dir = "/tmp/php_upload/www"
Answer the question
In order to leave comments, you need to log in
apache settings override php settings, you can specify different session directories for different proxies.
#server1.conf
Listen 127.0.0.1:8888
<VirtualHost 127.0.0.1:8888>
# ...
<Directory /home/user/server1/>
# ...
php_admin_value session.save_path /tmp/php_sessions/server1
php_admin_value upload_tmp_dir /tmp/php_upload/server1
</Directory>
# ...
</VirtualHost>
#server2.conf
Listen 127.0.0.1:8889
<VirtualHost 127.0.0.1:8889>
# ...
<Directory /home/user/server2/>
# ...
php_admin_value session.save_path /tmp/php_sessions/server2
php_admin_value upload_tmp_dir /tmp/php_upload/server2
</Directory>
# ...
</VirtualHost>
and she complained that she could not record sessions (everything is ok with rights), apparently she wants to record the same names,
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question