Skip to content

Commit 5be0a9a

Browse files
authored
Update documentation for cookie_secret (#1433)
1 parent f2d40f6 commit 5be0a9a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

jupyter_server/serverapp.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1139,8 +1139,9 @@ def _default_cookie_secret_file(self) -> str:
11391139
b"",
11401140
config=True,
11411141
help="""The random bytes used to secure cookies.
1142-
By default this is a new random number every time you start the server.
1143-
Set it to a value in a config file to enable logins to persist across server sessions.
1142+
By default this is generated on first start of the server and persisted across server
1143+
sessions by writing the cookie secret into the `cookie_secret_file` file.
1144+
When using an executable config file you can override this to be random at each server restart.
11441145
11451146
Note: Cookie secrets should be kept private, do not share config files with
11461147
cookie_secret stored in plaintext (you can read the value from a file).

0 commit comments

Comments
 (0)