Check if session is expired.