会话混在一起的PHP [英] Sessions getting mixed up PHP

查看:38
本文介绍了会话混在一起的PHP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们已经在一台集中式专用服务器上在线运行了大约500个用户的系统.我们的应用程序是用PHP编码的.最近,当我们有大约100 -150个用户的合理负载时,会话开始变得混乱起来.例如,如果某个用户在一段时间后以A身份登录,而他的会话切换到也已登录的用户B.系统已经运行了一年多,这是我们第一次遇到此问题.

Hi we have been operating a system for about 500 users online on one centralized dedicated server. Our application is coded in PHP. Recently when we have a reasonable load of about 100 -150 users sessions start getting mixed up. For instance if a user logins as A after a while his session switches to User B who is also logged in. The system has been in operation for over a year and this is the first time we are facing the problem.

服务器正在运行Centos.这是服务器端的任何内容还是代码中的内容.任何帮助表示赞赏.

The server is running Centos. Is this anything on the server end or is it something in the code. Any help much appreciated.

推荐答案

只需发布对

Just posted a reply to the same question asked a few minutes later by another user.

我同意Palantir的第一点和第三点-但第二点非常非常不可能是问题的原因.

I agree with Palantir's first and third points - but 2nd is very, VERY unlikely to be the cause of the problem.

您是否正在使用客户会话处理程序?默认处理程序可为成千上万的人工作.

Are you using a customer session handler? The default handler is working for thousands for people.

这篇关于会话混在一起的PHP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆