Anyway, it’s needed to modify the web application.
Possible approach of implementation:
– A user have to tick Remember me on logon.
– Change JS not to redirect to Login.aspx, if it is impossible to check that user is logged on.
If a user doesn’t tick Remember me, it’s impossible to automatically log him in after restart of a web server.