Skip to content

base default cookie name on request host+port#3372

Merged
Carreau merged 1 commit into
ipython:masterfrom
minrk:cookiename
Jun 2, 2013
Merged

base default cookie name on request host+port#3372
Carreau merged 1 commit into
ipython:masterfrom
minrk:cookiename

Conversation

@minrk
Copy link
Copy Markdown
Member

@minrk minrk commented May 28, 2013

instead of random.

The random cookie name meant that every time you restarted the notebook it would get a new key in the cookie for the same host, resulting in an ever-growing cookie full of obsolete data.

instead of random.

The random cookie name meant that every time you restarted the notebook it would get a new key in the cookie for the same host, resulting in an ever-growing cookie full of obsolete data.
minrk added a commit to minrk/ipython that referenced this pull request May 28, 2013
allows config to specify logins that survive across server instances (default behavior unchanged).

Depends on PR ipython#3372
@Carreau
Copy link
Copy Markdown
Member

Carreau commented May 28, 2013

how would this behave with multiple server on same machine ?

@Carreau
Copy link
Copy Markdown
Member

Carreau commented May 28, 2013

Ho, host contains, the port number right...

@minrk
Copy link
Copy Markdown
Member Author

minrk commented May 28, 2013

each server would get a different cookie (just like now), but the keys would have names like username-localhost-8888 and username-localhost-8889 instead of username-u-u-i-d

@Carreau
Copy link
Copy Markdown
Member

Carreau commented May 28, 2013

each server would get a different cookie (just like now), but the keys would have names like username-localhost-8888 and username-localhost-8889 instead of username-u-u-i-d

Yes I figured out with the replace(':','-'). Thanks. looks sensible.

@minrk
Copy link
Copy Markdown
Member Author

minrk commented May 28, 2013

Ho, host contains, the port number right...

right, host is not to be confused with hostname ( no ambiguity there 😉 )

@Carreau
Copy link
Copy Markdown
Member

Carreau commented Jun 1, 2013

Merging soon if no objection.

Carreau added a commit that referenced this pull request Jun 2, 2013
base default cookie name on request host+port
@Carreau Carreau merged commit a0a0e83 into ipython:master Jun 2, 2013
@minrk minrk deleted the cookiename branch March 31, 2014 23:36
mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this pull request Nov 3, 2014
allows config to specify logins that survive across server instances (default behavior unchanged).

Depends on PR ipython#3372
mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this pull request Nov 3, 2014
base default cookie name on request host+port
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants