本文介绍了Windows XP,Vista,IE和某些用户的PHP Session / Cookie问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我之前在这里提到过,但仍然有问题,所以添加了一些额外的信息:)

I've mentioned it on here before, but still have the problem, so have added some extra info :)

我们有一个本地内部网站点,每个人都在网络使用,可能有5%(甚至更少)使用该网站的用户遇到会话未正确存储的问题。

We have a local intranet site that everyone on the network uses, maybe 5% (or even less) of the users that use the site have problems where the session isn't stored properly.

我尝试过定义一个手动路径,而大多数用户会话都是创建并保持正常,在受影响的计算机上似乎忘记了cookie,或者它无法读取它们,然后几乎每次都创建一个新的cookie你刷新页面。

I've tried defining a path manually and whereas most users sessions are created and remain just fine, on the affected machines it seems that it either forgets the cookies are there, or it can't read them, and then goes on to create a new cookie almost every time you refresh a page.

需要注意的事项是...

Things to note are...


  • 发生在Zend登录界面我们的系统上,所以一旦它不是我狡猾的代码!

  • 它只影响
  • 它只在使用IE时发生

  • 它只发生在Windows XP或Vista上 - Windows 2000工作正常!

  • 它任何XP / Vista上的用户都会遇到这种情况achine,所以我可以使用我的老板PC,这很好,但如果他使用我的它再也不行了......

  • happens on both the Zend login screen and our systems, so for once it's not my dodgy code!
  • it only affects <5% of users
  • it only happens when using IE
  • it only happens with Windows XP or Vista - Windows 2000 works fine!
  • it happens to those users on any XP/Vista machine, so I can use my bosses PC and it's fine, but if he uses mine it doesn't work again...

我也试过搞乱IE中的安全设置,更改cookie安全性以允许所有cookie /会话,但遗憾的是没有运气。 :(

I've tried messing with the security settings in IE too, changing the cookie security to allow all cookies/sessions, but no luck on that either unfortunately. :(

我已经尝试过nettool,但遗憾的是它并没有太大帮助,因为它只显示新的cookie /会话正在创建,但没有说出原因。

I've tried nettool but it didn't really help much unfortunately, since it just showed that the new cookies/sessions were being created, but didn't say why.

我也尝试检查服务器上的日期和时间与工作站上的日期和时间相同,并确保一切正常。

I've also tried checking the date and times are on the same on the server as they are on the workstation, and yup everything is set fine.

服务器的名称是'gc-hr01' - 不确定这是否会影响这样的事情。

The name of the server is 'gc-hr01' - not sure if that should affect anything like this.

任何帮助都会令人惊讶,真的坚持这个。

Any help would be amazing, really stuck on this.

谢谢!

推荐答案

由于和/或。尽量使这些信息尽可能具体,例如:

The session cookie might get refused because of insufficient validity and/or privacy information. Try to make those as specific as possible, for example:

session_set_cookie_params(0, '/path/to/your/php-application', '.www.example.com', false, true);

这篇关于Windows XP,Vista,IE和某些用户的PHP Session / Cookie问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-24 13:02