Mattermost desktop session expired

  • Resolved *

Well…

I noticed a very brief flash on the screen sometimes when starting the app and kept doing it until I was able to get a screenshot. It said that this server had no sign-in method enabled which was clearly not the case but it started me thinking.

I spent the morning trying various things and changed settings in haproxy. When looking I noticed a line of config I have to enable Nextcloud to run inside an iframe in a different site which has been running for 2 yrs now. I commented, restarted haproxy and immediately was able to login with desktop 5.22.

For completeness, the offending line was: http-response replace-header Set-Cookie “(.*)” “\1; SameSite=None”

My guess is that this was causing the credentials not to be maintained in the session and hence the expired message…

So - many thanks for your support in attempting to resolve - it is appreciated!

Regards