debug for lose of session