Page MenuHomePhabricator

Login should return the cookie prefix
Closed, ResolvedPublic

Description

Author: Bryan.TongMinh

Description:
Parsing cookie headers is quite annoying. Therefore, it would be useful to have action=login return something like lgcode, which would be the prefix of the cookies. For example, if the session cookie is name commonswiki_session, lgcode should be 'commonswiki'.


Version: 1.12.x
Severity: enhancement

Details

Reference
bz11569

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:00 PM
bzimport set Reference to bz11569.

Will do this after the week-end.

Bryan.TongMinh wrote:

I noticed that without the session (commonswiki_session), the edit tokens change on each call. Could this also be added as lgSession?

(In reply to comment #2)

I noticed that without the session (commonswiki_session), the edit tokens
change on each call. Could this also be added as lgSession?

What do you mean? Do you want lgSession to be a parameter or a return value?

Bryan.TongMinh wrote:

As return value.

(In reply to comment #4)

As return value.

Why? The user can figure out for themselves the session cookie is lgCookiePrefix . "_session"

Bryan.TongMinh wrote:

I meant the actual content of the session cookie.

(In reply to comment #6)

I meant the actual content of the session cookie.

Oh, didn't get that. I'll implement it next Monday.