简体   繁体   English

zend,php会话,jQuery ajax问题

[英]zend, php session, jquery ajax problem

Here is what happens to some users of IE8 when using the website i am responsible for: 这是我负责的网站上使用IE8的某些用户所发生的事情:

  1. person logs in, credentials are verified, zend auth is created. 人员登录,验证凭据,创建zend auth。 After login, user is redirected to the default page. 登录后,用户将被重定向到默认页面。
  2. the default page has 5 ajax request that start on document ready. 默认页面有5个ajax请求,从准备好文档开始。 The ajaxes somehow don't have the php session in the request and result with returning a login form. ajax以某种方式在请求和返回登录表单的结果中没有php会话。 2 of these ajaxes return json, 3 return html. 这些ajax中的2个返回json,3个返回html。 zend auth is still available for these requests. zend auth仍可用于这些请求。

After inspecting the headers and the cookies, headers are proper, PHPSESSID is different. 检查标题和cookie后,标题是正确的,PHPSESSID是不同的。

More on the environment, php 5.2, https on entire website, jquery 1.2.3 The ajax requests are made with .ajax 有关环境的更多信息,php 5.2,整个网站上的https,jquery 1.2.3 ajax请求是使用.ajax进行的

Can someone please help with some advice? 有人可以帮忙一些建议吗?

Have you tried a more modern version of jQuery? 您是否尝试过更现代的jQuery版本? 1.2.3 is almost three years old (a lifetime in jQuery world) and predates IE8 so no testing for IE8 would have been done. 1.2.3已有将近三年的历史(在jQuery世界中是有生命的),并且早于IE8,因此不会对IE8进行任何测试。

I did solve this issue with the first thing I tried. 我确实用第一件事解决了这个问题。

These parallel ajax requests were too much for ie8 to handle. 这些并行的ajax请求对于ie8来说太多了。 Removed the ajaxes and the problem was solved. 删除了ajax,问题解决了。 Did not try how many requests ie can actually handle.... Still strange how this happened only on some ie8's but anyway, problem solved. 没有尝试过多少个请求,即实际上可以处理...。仍然很奇怪,这种情况仅在某些ie8上发生了,但是无论如何,问题解决了。

Thanks Kris for the answer, your suggestion would have been the next thing to try... certainly seems reasonable... 感谢克里斯(Kris)的回答,您的建议将是接下来要尝试的……肯定似乎是合理的……

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM