Use session.isExpired() method
Use session.isNew() method
Check if request.getSession() returns null
Compare sum of getCreationTime() and getMaxInactiveInterval() with current time
Compare sum of getLastAccessedTime() and getMaxInactiveInterval() with current time
Use session.isActive() method
|