adding clear function for session.