/*----------------------------------------------------------------
* Copyright (C)
* All rights reserved.
*
* FileName: ErrorManager.cs
* Function Description: asp.net in the common error repair, with this class matching need to add an error message display page, such as Error.aspx
*
* Use instructions: 1. Start the timer (timed emptying error message) in Application_Start (): ErrorManager.Instance.Start (),
* The default 12-hour run time, or with ErrorManager.Instance.SetTimerInterval () set.
* 2. In Application_Error (), when an error occurs, save the error message and go to error.aspx to display the error
* String key = ErrorManager.Instance.AddError ();
* Response.Redirect ("error.aspx?key=" + key);
* 3. In Error.aspx, the key is passed through the URL to obtain and display an error message:
* String err = ErrorManager.Instance.GetError (key)
* The first 19 characters in Err are the time when the error occurred, followed by the error message.
* 4. In order to catch a session timeout error, instead of returning Session[key] is a null error message, this class adds GetSession ()
* and the Setsession function to unify the management session, in the future ASPX cannot read the session directly, but must read through this class.
*
*
* Create identity:
*
* Modify the identity:
* Modify Description:
*
* Modify the identity:
* Modify Description:
*----------------------------------------------------------------*/