You can handle the session timeout by handling:
Application.SessionTimeout += (s, e) => { e.Handled = true; // Show your message (not modal). };
When the session timeout event is fired, the session is already timeout out. You still have the “session timeout” period until it is disposed and everything is lost. You can also force a session to terminate by calling Application.Exit().
You can handle any exception fired on the server side before it is sent back to the client:
Application.ThreadException += (s, e) => { // Display the error, or do anything you need to do. // Once the event is handled (attached), the system will not // send the exception back to the client. };
Hi Ser,
You can localize and you may also change the behavior.
See:
https://wisej.com/support/question/network-errors-dialogs
https://wisej.com/support/question/how-can-i-change-the-language-or-text-of-network-errors
Best,
Luca
Thanks it worked!
But how about other forms like
–Session timeout form– “Your session has expired” “Please close the browser”
–Invalid session form
Please login first to submit.