When a user accesses a site and a login form is shown, the session expiry countdown starts immediately. This means the session can expire without the user having logged in. If the user subsequently submits a login request the ugly "Invalid session or session Timeout..." message is displayed on the users browser. The message looks specially awful on mobile devices and hints at immature (un-robust?) web design. Is there any way one can intercept this default http handling and instead automati