`
遠大前程
  • 浏览: 7124 次
  • 性别: Icon_minigender_1
  • 来自: 广州
最近访客 更多访客>>
社区版块
存档分类
最新评论

What if you only want a pre-existing session?

阅读更多
HttpSession session = request.getSession(false);<%--Passing "false" means the method returns a pre-existing session or null if there was no session associated with this client.--%>

if(session == null){
     session = request.getSession();
}
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics