通过运行用户清除会话 [英] clear a Session by running user
本文介绍了通过运行用户清除会话的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已声明会话名称会话[EmployeeID]
。
有两个用户登录系统
用户1分配值会话[ EmployeeID] = 001
来自不同的PC
user2 assign Session [EmployeeID] = 002
如果user1指定会话[EmployeeID]
说 empID = Session [EmployeeID]。ToString();
返回什么002或001
如果user1销毁会话,那么user2会从会话002获得他的价值吗?
I have declare a Session Name Session["EmployeeID"]
.
There are two user login the system
User1 assign value Session["EmployeeID"]=001
from different PC
user2 assign Session["EmployeeID"]=002
if user1 assign the value of Session["EmployeeID"]
say empID=Session["EmployeeID"].ToString();
What he return 002 or 001
and if user1 destroy the Session Is user2 get his valu from Session 002 ?
推荐答案
嗨Md.Mahfujul
返回002
第1次会议(会议[employeeid] = 001 )不要销毁它覆盖从001到002的值。每个会话仅在20分钟后销毁或手动给出销毁声明。
Hi Md. Mahfujul
It return 002
The 1st session(session[employeeid]=001) not destroy it override the value from 001 to 002. every session destroy only after 20mins or manually give the destroy statement.
这篇关于通过运行用户清除会话的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文