douyuan3842 2009-06-15 15:06
浏览 70
已采纳

PHP用户会话变得“混乱”

The application that I am having trouble with is a generic web application... nothing special about the way it handles users. That is to say, I handle user information in the session variable, with the session managed via a cookie.

A client of mine is having an issue whereby the users are logged in and every now and again they are presented with a page for a different user (this is easy to determine because the user's name is at the top of each page). If they click the 'Home' link, everything is fine again, apparently.

Now as far as my PHP knowledge is concerned, it would take some effort to mix this kind of thing up, right? I can't replicate the issue in any of our development environments and as far as I am concerned, like I say, it would take some effort to actually 'share' this kind of session information...

So my question is this: what could be the possible problems? Every time I experienced this before it was due to a 'mis-behaving' proxy server, though they are telling me that they are not proxying the requests.

Is there anything else that I may be missing? Any other possible reasons for this (naturally this could include an issue with my code)?

Thanks...

  • 写回答

4条回答 默认 最新

  • doufei2007 2009-06-16 00:42
    关注

    So it turns out that the final outcome of this situation, at least, was fairly oddball.

    It turns out that the client was using handheld computers to access the application and letting the batteries go flat. This particular device then reset its clock to 2005 when the battery was eventually recharged and it seems as though this led the browser to read certain pages from its cache.

    As soon as the clock on the device/s was set correctly, the issue went away.

    Thanks to all for the suggestions: I hate trying to debug these caching type issues. I guess, though, that I really should add some headers to try and stop these handhelds caching the data.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(3条)

报告相同问题?

悬赏问题

  • ¥60 求一个简单的网页(标签-安全|关键词-上传)
  • ¥35 lstm时间序列共享单车预测,loss值优化,参数优化算法
  • ¥15 基于卷积神经网络的声纹识别
  • ¥15 Python中的request,如何使用ssr节点,通过代理requests网页。本人在泰国,需要用大陆ip才能玩网页游戏,合法合规。
  • ¥100 为什么这个恒流源电路不能恒流?
  • ¥15 有偿求跨组件数据流路径图
  • ¥15 写一个方法checkPerson,入参实体类Person,出参布尔值
  • ¥15 我想咨询一下路面纹理三维点云数据处理的一些问题,上传的坐标文件里是怎么对无序点进行编号的,以及xy坐标在处理的时候是进行整体模型分片处理的吗
  • ¥15 CSAPPattacklab
  • ¥15 一直显示正在等待HID—ISP