error method by Session