您的位置:程序门 -> java -> j2ee / ejb / jms



servlet中 可以得到当前所有连接系统的客户 session 列表吗?


[收藏此页] [打印本页]选择字色:背景色:字体:[][][]


servlet中 可以得到当前所有连接系统的客户 session 列表吗?[已结贴,结贴人:]
发表于:2007-06-22 23:10:01 楼主
servlet中   可以得到当前所有连接系统的客户   session   列表吗?
发表于:2007-06-25 10:49:551楼 得分:0
request.getsession().getattributenames()

getattributenames
public   java.util.enumeration   getattributenames()returns   an   enumeration   of   string   objects   containing   the   names   of   all   the   objects   bound   to   this   session.  

returns:
an   enumeration   of   string   objects   specifying   the   names   of   all   the   objects   bound   to   this   session  
throws:  
java.lang.illegalstateexception   -   if   this   method   is   called   on   an   invalidated   session


快速检索

最新资讯
热门点击