Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java ee check if session exists or is new

if(session.getAttribute("foo") == null){
  // Session does not exist (Actually, the attribute just isn't set, but it works)
}else{
  // Session does exist
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #java #ee #check #session #exists
ADD COMMENT
Topic
Name
9+5 =