Session的使用

常用Apl

如:

1)String getid():获取Session的id

2)long getCreationTime():获取Session被创建时间

3)long getLastAccessedTime():返回session最后活跃的时间

4)boolean isNew():该session是否为新的

5)ServletContext getServletContext():获取ServletContext

 

 

 

 

........

 

posted @ 2022-11-09 22:41  月丫湾  阅读(18)  评论(0)    收藏  举报