会话问题登出 [英] Problem logout with Session

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

问题描述

我在注销时遇到问题.我有两个会话:客户会话,工作人员会话和Application ["supportWorker"].客户可以注销,了解工作人员的状态并注销工人.
如何使客户无法注销工人?
他们只能看到工作人员. >
会话是特定于用户的.应用程序变量适用于所有用户.

如果工作进程与客户绑定,则一旦您注销客户并清除会话,工作进程也将被清除.它是ASP.NET设计,它的工作方式清除了特定于用户的所有会话.如果要保持活动状态,请使用应用程序变量.

在此处阅读有关状态管理的信息:
MSDN:ASP.NET状态管理概述 [ ASP.NET中的状态管理-1 [ ASP.Net状态管理技术-2 [ How to the customer can not log out workers?
They can just see workers.

the customer''s session,a worker''s session and Application["supportWorker"].
Sessions are user specific. Application variable is across all users.

If worker session is tied to a customer then as soon you logout customer and clear sessions, worker session will also get cleared. It''s the ASP.NET design, the way it works clears all session specific to a user. If you want to keep something alive use application variable.

Read about state managment here:
MSDN: ASP.NET State Management Overview[^]
State management in ASP.NET - 1[^]
ASP.Net State Management Techniques - 2[^]


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

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