Invalid or expired session after changing Settings

Hello,

I changed some settings in the system console, because i wanted to prevent users from being logged out after 30 days:

Since then, users can no longer log in and receive the following message after login:
“Invalid or expired session, log in again.”

The error occurs with both the Web variant (Chrome + Edge) and Windows Desktop App. In the mobile iOS App it works.

What I’ve tried:

  1. Mattermost Restart (Docker)
  2. Reset the config via Console “mattermost config reset” and restart the server afterwards

Now the config is:
SessionLenghtInMobileInDays: 180
SessionLengthSSOInDays: 30
SessionLengthWebInDays: 180

I am using Server Version 5.18 and MySQL Database.

Do you have any idea what it could be?

Best regards,
Ninofy

This is the error according console log:

{“level”:“debug”,“ts”:1582560276.7792656,“caller”:“mlog/log.go:162”,“msg”:“Invalid or expired session, please login again.”,“path”:"/api/v4/users/me/teams/unread",“request_id”:“6uch8sqcotyppffnz7rhuk34fc”,“ip_addr”:“172.17.0.1”,“user_id”:"",“method”:“GET”,“err_where”:"",“http_code”:401,“err_details”:“UserRequired”}

Hello, @Ninofy

Have you tried to restore back the default configuration of the values for now, click Save, and verify that the users are able to log in again?

Does it also happen when the user tries to log in on the private / Incognito session of the web browser?