A user reports being logged out after downloading an attachment, with a popup indicating logout and requiring a refresh to log back in. The issue occurs after downloading a PDF from a post, sometimes immediately or upon navigating to the next page. The user investigates and finds a console warning about a MIME type mismatch, but suspects it may be unrelated. Further investigation reveals that Privacy Badger is blocking a domain related to the attachment download, which was not previously flagged. After resetting Privacy Badger and clearing the block, the issue resolves. The user also notes that local and session storage are lost after downloading, even with Privacy Badger disabled, which seems odd. The issue is resolved, and the user thanks the community for their help. tfootecodinghorrortfootecodinghorror
Logged into my site when I click on an attachment, a popup comes up and tells me that I’ve been logged out, and provides a refresh button. Clicking that or refreshing and I’m logged back in.
I can reproduce by downloading the survey pdf from this post:
Then sometimes when I navigate to the next page, or sometimes immediately after the download without any interaction I get this popup.
Clicking refresh or reloading the page will result in being logged in again but on the home page not the page I was expecting to go to. But I’ve been seeing this for a while and it’s just slightly annoying to get these warnings that require one extra step and get me used to ignoring warnings on the site.
Are you using any browser plugins? Any local antivirus or “protection” that would deal with downloaded files? That’d be my very first guess. Maybe try in a different browser you don’t normally use, or safe mode in your current browser.
Can you repro this on your mobile phone with wifi turned off? That would simultaneously rule out browser plugins and desktop antivirus software and any upstream networking devices in one swell foop.
I’m not sure when Privacy Badger learned to flag the site. I reset it and cleared the flag and it now shows a DNT and is happy with the site by default.
I noticed that it seems to loose the Local storage and Session storage when I download the attachment which seems odd. And this happens with Privacy Badger disabled.