foreman icon indicating copy to clipboard operation
foreman copied to clipboard

Fixes #38867: Clear browser data on logout

Open ehelms opened this issue 2 months ago • 1 comments

This is based on the implementation described here: https://github.com/github/secure_headers/blob/main/docs/per_action_configuration.md#clearing-browser-cache

ehelms avatar Oct 28 '25 16:10 ehelms

Would this just clear the cache for Foreman or everything in the browser?

Just the data for the Foreman site itself.

On the host details page, Details tab, you can expand or collapse each individual card. Your card expand/collapse states are saved in localStorage. I think it's useful for those to survive a logout.

Can this clear localStorage selectively?

How do you we ensure a clean line is draw between what we save and what we do not? I get the niceness form a user perspective, but I feel like this should be handled persistently in the database if we really want to offer users this.

ehelms avatar Nov 02 '25 17:11 ehelms