zend,php会话,jquery ajax问题

发布于 2024-09-29 07:24:46 字数 375 浏览 0 评论 0原文

以下是一些 IE8 用户在使用我负责的网站时发生的情况:

  1. 人员登录、验证凭据、创建 zend auth。登录后,用户将被重定向到默认页面。
  2. 默认页面有 5 个 ajax 请求,这些请求在文档准备就绪时启动。 ajaxes 不知何故在请求中没有 php 会话,结果返回登录表单。其中 2 个 ajax 返回 json,3 个返回 html。 zend auth 仍然可用于这些请求。

检查标头和 cookie 后,标头正确,PHPSESSID 不同。

有关环境的更多信息,php 5.2,整个网站上的 https,jquery 1.2.3 ajax 请求是使用 .ajax 发出的,

有人可以帮忙提供一些建议吗?

Here is what happens to some users of IE8 when using the website i am responsible for:

  1. person logs in, credentials are verified, zend auth is created. After login, user is redirected to the default page.
  2. the default page has 5 ajax request that start on document ready. The ajaxes somehow don't have the php session in the request and result with returning a login form. 2 of these ajaxes return json, 3 return html. zend auth is still available for these requests.

After inspecting the headers and the cookies, headers are proper, PHPSESSID is different.

More on the environment, php 5.2, https on entire website, jquery 1.2.3
The ajax requests are made with .ajax

Can someone please help with some advice?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

隔纱相望 2024-10-06 07:24:46

您尝试过更现代版本的 jQuery 吗? 1.2.3 已经快三年了(jQuery 世界的一生)并且早于 IE8,因此不会对 IE8 进行测试。

Have you tried a more modern version of 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.

南城追梦 2024-10-06 07:24:46

我确实用我尝试的第一件事解决了这个问题。

这些并行的 ajax 请求对于 ie8 来说太多了,无法处理。去掉ajax,问题就解决了。没有尝试 ie 实际可以处理多少个请求....
仍然奇怪的是,这种情况只发生在某些 ie8 上,但无论如何,问题已解决。

感谢克里斯的回答,你的建议将是下一个要尝试的事情......当然看起来很合理......

I did solve this issue with the first thing I tried.

These parallel ajax requests were too much for ie8 to handle. Removed the ajaxes and the problem was solved. Did not try how many requests ie can actually handle....
Still strange how this happened only on some ie8's but anyway, problem solved.

Thanks Kris for the answer, your suggestion would have been the next thing to try... certainly seems reasonable...

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文