-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add session lifespan, rename sessionTimeout to session.idleTimeout
Extending sessions works properly. Still TODO: * Add sessionInfo endpoint to allow clients to fetch info * Modify UI to change the existing idle timeout notification, and add another one for exceeding the lifespan
- Loading branch information
Showing
13 changed files
with
362 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
x-pack/legacy/plugins/xpack_main/public/services/xpack_session_data.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License; | ||
* you may not use this file except in compliance with the Elastic License. | ||
*/ | ||
|
||
const XPACK_SESSION_DATA_KEY = 'xpackMain.sessionData'; | ||
|
||
export const xpackSessionData = { | ||
get() { | ||
return sessionStorage.getItem(XPACK_SESSION_DATA_KEY); | ||
}, | ||
set(updatedXPackSessionData) { | ||
sessionStorage.setItem(XPACK_SESSION_DATA_KEY, updatedXPackSessionData); | ||
}, | ||
clear() { | ||
sessionStorage.removeItem(XPACK_SESSION_DATA_KEY); | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.