【发布时间】:2013-12-04 01:21:28
【问题描述】:
最近我遇到了一个非常奇怪的问题,在浏览了所有可能的论坛和其他互联网资源后找不到解决方案。
情况如下:
我正在使用 WAMP 开发一个 PHP 网站。我设置了一个名为 rienn_laravel 的虚拟主机,因此我可以通过地址访问 localhost 上的站点
http://rienn_laravel/
该网站在最新的 Chrome 和 Firefox 中运行良好,但在 IE 9 中我无法使用 Sessions。我无法登录,也无法访问我在会话中输入的错误/通知消息。
我使用了以下设置。
在 httpd-vhosts.conf 我有以下内容:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot "C:/path/to/project"
ServerName rienn_laravel
<Directory "C:/path/to/project">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
在我的主机文件中,我添加了以下行:
127.0.0.1 rienn_laravel
【问题讨论】:
标签: internet-explorer session wamp virtualhost wampserver