Java EE Compruebe si la sesión existe o es nueva
if(session.getAttribute("foo") == null){
// Session does not exist (Actually, the attribute just isn't set, but it works)
}else{
// Session does exist
}
Zwazel