You should validate if the session is expired or not.