📜  java ee 检查会话是否存在或是否是新的 - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:10.048000             🧑  作者: Mango

代码示例1
if(session.getAttribute("foo") == null){
  // Session does not exist (Actually, the attribute just isn't set, but it works)
}else{
  // Session does exist
}