Hi everyone,
I’m running a custom Frappe app with multiple user roles. Different users often share the same workstation to log into the system.
Here’s the issue I’m facing:
-
User A logs in, works on the system, and logs out while still on an inner page (not the home page).
-
When User B logs in on the same machine, the system redirects them to the last page that User A was on, instead of taking them to their own home page.
I would like to change this behavior so that:
-
All session/page-related cache is cleared on logout, and
-
The next user who logs in is always redirected to the default home page, not the previous user’s last page.
Has anyone implemented this before or knows the correct hook or method to override?
Is there a recommended way to ensure that shared-computer logins always start fresh?
Thanks in advance!