会话变量麻烦 [英] Session variable trouble
问题描述
我遇到了麻烦。我的代码中有一些Session变量和
我的会话变量与其他用户混淆了。
例如用户A可以访问10家公司并且用户B可以访问
5,现在当我们两个同时点击服务器然后他们的
会话变量混淆意味着用户A和用户B将有
现在5家公司或两家公司都有10家公司。现在,当用户A再次向服务器点击
时,他将再次拥有他的会话变量设置。
我在session_Onstart事件中初始化了会话变量。 />
现在,想一想它为什么会发生。
问候,
Amit Arora
Hi,
I am facing a trouble. I have some Session variables in my code and
somehow my session variables are getting mixed up with other users.
For example User A has access to 10 companies and User B has access to
5, now when both of us hits to the server at the same time then their
session variables gets mixedup means either User A and USer B will have
now 5 companies or both have 10 companies. Now again when User A hits
to the server he will have again his session variables setting.
I have initialsed my session variables in session_Onstart event.
Now and clue why it is happening.
Regards,
Amit Arora
推荐答案
你是如何模拟两个不同的用户的?相同/不同的机器?
相同/不同的浏览器?
Hi, how are you simulating the two different users? Same/differenr machine?
Same/different browser?
不同的机器和不同的浏览器...
diffrent machine and diffrent browser...
不同的机器和相同的浏览器...
diffrent machine and same browser...
这篇关于会话变量麻烦的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!