LedgerSMB icon indicating copy to clipboard operation
LedgerSMB copied to clipboard

When user is logged out for inactivity, redirect them to the login screen, rather than displaying an Error

Open auspex opened this issue 7 months ago • 0 comments

Version

1.12.9

What browsers are you seeing the problem on?

This problem isn't browser related

What happened?

I frequently leave LSMB open overnight, and of course I'm logged out before I return to it.

If you just refresh the page, you will be told you've been logged out for inactivity and presented with the link to login again. If you try anything else you get the following:

Image

What should have happened?

It's never correct to present an end user with a message like "Internal server error" if you can properly handle it in code.

In case of connection errors, it is probably always acceptable to redirect the user to the login page. If it turns out to be a more serious error than simply having been logged out, the login page is probably the right place to handle that error.

auspex avatar Jun 06 '25 14:06 auspex