Following are steps to delete session data :
Remove particular attribute :
Syntax: public void removeAttribute(String name)
Discard the whole session :
Syntax: public void invalidate()
Setting individual session timeout :
Syntax: public void setMaxInactiveInterval(int interval)
Logout user : logout user from the web server and invalidate session belonging to the user.