使用Google Chrome时,我在页面之间导航时似乎丢失/损坏了会话数据(PHP 5.0.4,Apache 2.0.54)。该网站在IE7/8、Firefox、Safari和Opera中运行良好。这个问题只出现在Google Chrome上。
我缩小了问题的范围。我使用搜索友好的网址,并通过一个.htaccess文件隐藏我的前端控制器(index.php)。网址如下: www.domain.com/blah/blah/这是.htaccess文件的内容:
Options +FollowSymlinks
RewriteEngine on
#allow cool urls
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) index.php [L]
#allow to have Url without index.php
如果我删除.htaccess文件,并在URL中公开前端控制器: www.domain.com/index.php/blah/blah/,Chrome就能正常工作。
有什么想法吗?我认为这是Chrome如何识别要使用的cookie并发送到服务器的某种问题?这发生在Chrome4和Chrome5中。谢谢!
https://stackoverflow.com/questions/2953536
复制相似问题