java - State of HttpSession instance after timeout? -
what makes httpsession instance expire after time-out when checked
if(session!=null){ system.out.println("the instance not null"); }else{ system.out.println("the instance null"); }
each time if-block executed.
- for expiring session, use
session.invalidate()
. ensure session expired. - even if session invalidated, doesn't mean
null
Comments
Post a Comment