WebSessionTimeOutEvent (sender, CEWebFormRendererEventArgs)

The WebSessionTimeOut Event occurs when the Web Session has timed out. When the CE Web Form Renderer detects that the session has timed out, it is necessary to reestablish the session before the user can continue.

When intercepted, the programmer of the hosting page is able to provide the behavior required for re-establishing the session. The example below shows how to use the supplied TimeOut user control.

Example hosting page WebSessionTimeOut event handler. (C#)

private void OnWebSessionTimeOut(object sender, CEWebForm.CEWebFormRendererEventArgs e)
{
      // Display the TimeOut user control allowing to re-establsih the session.
      ((CEWebForm.CEWebFormRenderer)sender).DisplayUserControl("TimeOut.ascx");
}