modified the method of display session error page.