试图在SO上进行大量搜索无济于事。
我有一个运行两个网站的WAMP3设置。
http://192.168.1.199/site1 和 http://192.168.1.199/site2
两个网站都有自己的用于验证的用户表,但是,当用户登录或注销两个网站时,在两个网站上具有相同的作用。
如何避免这种情况并为每个网站分别设置用户会话?
P.S>如果有助于指出问题,则通过Dreamweaver CS生成登录/注销脚本。
我的Apache v-host配置如下:
# Virtual Hosts
#
<VirtualHost *:80>
ServerName localhost
ServerAlias localhost
DocumentRoot "${INSTALL_DIR}/www"
<Directory "${INSTALL_DIR}/www/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
#
<VirtualHost *:80>
ServerName jobsnew
DocumentRoot "c:/wamp64/www/jobsnew/"
<Directory "c:/wamp64/www/jobsnew/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>
#
<VirtualHost *:80>
ServerName salon
DocumentRoot "c:/wamp64/www/salon/"
<Directory "c:/wamp64/www/salon/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerName phpmyadmin
DocumentRoot "c:/wamp/apps/phpmyadmin3.5.1/"
<Directory "c:/wamp/apps/phpmyadmin3.5.1/>
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
感谢您的帮助。谢谢。