element-hq / element-hq/element-web
Hibernation/VPN win 11 forced logout MAS
- Dominant language
- TypeScript
- Stars
- 13.5k
- Forks
- 2.8k
- PR merge metrics
- PR metrics pending
Description
### Steps to reproduce
I have ESS with helm chart installed and element clients that run on win 11. We have keycloak SSO for MAS in use. There are a few people who had not once a forced logout, but some who use hibernation (or for some other reason we currently dont know) have it that when they open the client again that it does not use that last session but one has to login again (forced logout). Is there a setting one can change that?
this are the logs from the client where it works:
2025-06-12T06:46:53.036Z I checkSessionLockFree Last ping (from 4cdfsd87-3d2a-44sdf0-9dsf-e62fd48f3656) was 58797658ms ago: lock is free
2025-06-12T06:46:53.037Z I getSessionLock[edbb50c9-2172-49ea-96a7-8da1sdf8b0] Last ping (from 4c934d87-3d2a-4430-954b-e6dsf8f3656) was 58797659ms ago: proceeding with startup
2025-06-12T06:46:53.100Z D Got pickle key for @userb:wellknown-test.de|DKOeLDMIdf
2025-06-12T06:46:53.104Z D Restoring session for @userb:wellknown-test.de
2025-06-12T06:46:53.104Z D setLoggedIn: mxid: @userb:wellknown-test.de deviceId: DKsdfdf guest: false hs: https://matrix-test.de softLogout: false freshLogin: false
2025-06-12T06:46:53.105Z D StorageManager: Checking storage consistency
2025-06-12T06:46:53.105Z D StorageManager: Local storage supported? true
2025-06-12T06:46:53.105Z D StorageManager: IndexedDB supported? true
2025-06-12T06:46:53.105Z D StorageManager: Local storage contains data? true
2025-06-12T06:46:53.105Z D StorageManager: Crypto initialised? true
2025-06-12T06:46:53.106Z D StorageManager: Sync store using IndexedDB contains data? true
2025-06-12T06:46:53.108Z D StorageManager: Rust Crypto store using IndexedDB contains data? true
2025-06-12T06:46:53.108Z D StorageManager: Storage consistency checks passed
these are logs where it didnt:
2025-06-11T13:08:43.035Z D Using homeserver config: {"hsUrl":"https://matrix-client.matrix.org","hsName":"matrix.org","hsNameIsDifferent":true,"isDefault":true,"warning":"Homeserver URL does not appear to be a valid Matrix homeserver","isNameResolvable":true}
2025-06-11T13:08:43.035Z D Updating SdkConfig with validated discovery information
2025-06-11T13:08:43.051Z I checkSessionLockFree No other session has the lock
2025-06-11T13:08:43.051Z I getSessionLock[3c2c0823-9c70-481a-8110-a2572bd67682] No other session has the lock: proceeding with startup
2025-06-11T13:08:43.053Z I We have OIDC params - attempting OIDC login
2025-06-11T13:08:43.304Z D FetchHttpApi: --> GET https://matrix-test.de.de/_matrix/client/v3/account/whoami
2025-06-11T13:08:43.377Z D FetchHttpApi: <-- GET https://matrix-test.de.de/_matrix/client/v3/account/whoami [73ms 200]
2025-06-11T13:08:43.378Z D Logged in via OIDC native flow
2025-06-11T13:08:43.378Z I Clearing storage, deleteEverything=undefined
2025-06-11T13:08:43.381Z D EventIndex: Deleting event index.
2025-06-11T13:08:43.384Z D Removing indexeddb instance: matrix-js-sdk:crypto
2025-06-11T13:08:43.385Z I Removing IndexedDB instance matrix-js-sdk::matrix-sdk-crypto
2025-06-11T13:08:43.385Z D Removed indexeddb instance: matrix-js-sdk:crypto
2025-06-11T13:08:43.385Z I Removed IndexedDB instance matrix-js-sdk::matrix-sdk-crypto
2025-06-11T13:08:43.385Z I Removing IndexedDB instance matrix-js-sdk::matrix-sdk-crypto-meta
2025-06-11T13:08:43.386Z I Removed IndexedDB instance matrix-js-sdk::matrix-sdk-crypto-meta
2025-06-11T13:08:43.445Z D IndexedDB worker is ready
2025-06-11T13:08:43.447Z D Deleted indexeddb data.
2025-06-11T13:08:43.480Z D Created pickle key for @testb:wellknown-test.de.de|HjCwMT5Gqv
2025-06-11T13:08:43.487Z I Default empty persistCredentials() => void
2025-06-11T13:08:43.487Z D Session persisted for @testb:wellknown-test.de.de
2025-06-11T13:08:43.488Z D Redirecting to vector://vector/webapp/ to drop delegated authentication params from queryparams
2025-06-11T13:08:43.491Z D Got pickle key for @testb:wellknown-test.de.de|HjCsdf5Gqv
2025-06-11T13:08:43.495Z D Restoring session for @testb:wellknown-test.de.de
2025-06-11T13:08:43.496Z D setLoggedIn: mxid: @testb:wellknown-test.de.de deviceId: HjCsdf5Gqv guest: false hs: https://matrix-test.de.de softLogout: false freshLogin: true
2025-06-11T13:08:43.496Z D StorageManager: Checking storage consistency
2025-06-11T13:08:43.496Z D StorageManager: Local storage supported? true
2025-06-11T13:08:43.496Z D StorageManager: IndexedDB supported? true
2025-06-11T13:08:43.496Z D StorageManager: Local storage contains data? true
2025-06-11T13:08:43.496Z D StorageManager: Crypto initialised? false
2025-06-11T13:08:43.500Z D StorageManager: Sync store using IndexedDB contains data? false
2025-06-11T13:08:43.508Z D StorageManager: Rust Crypto store using IndexedDB contains data? false
2025-06-11T13:08:43.517Z D StorageManager: Legacy Crypto store using IndexedDB contains non migrated data? false
2025-06-11T13:08:43.517Z D StorageManager: Storage consistency checks passed
2025-06-11T13:08:43.618Z I Default empty persistCredentials() => void
Could it be that when going out of hibernation Element calls a invalid sso url and then it makes a forced logout?
### Outcome
#### What did you expect?
#### What happened instead?
### Operating system
_No response_
Latest Version.
_No response_
### How did you install the app?
_No response_
### Homeserver
_No response_
### Will you send logs?
Yes
Contributor guide
Assessment
This issue has not been assessed yet.