We moved to a new server (Debian 8) to be able to upgrade PHP to PHP 7, added SSL and then upgraded to 3.5.2.
Now, when a user (any user, also admins) click on a link to a file resource (i.e. /mod/resource/view.php?something) they are redirected to the login page. It is however not possible to log back in, unless the window or tab is closed and a new is opened.
I've tested this in Safari, Chrome and Firefox, macOS and Windows, and it is consistent across client environments, but I can't figure out what the problem on the server could be.
EDIT: I just realized that it only seems to affect PDFs, not for instance .docx files. Maybe that is a clue to someone (though not me)…
Any ideas?