Last modified: 2007-10-08 18:00:31 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 11569 - Login should return the cookie prefix
Login should return the cookie prefix
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
1.12.x
All All
: Normal enhancement (vote)
: ---
Assigned To: Roan Kattouw
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-10-05 13:07 UTC by Bryan Tong Minh
Modified: 2007-10-08 18:00 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Bryan Tong Minh 2007-10-05 13:07:32 UTC
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'.
Comment 1 Roan Kattouw 2007-10-05 13:33:10 UTC
Will do this after the week-end.
Comment 2 Bryan Tong Minh 2007-10-05 13:44:30 UTC
I noticed that without the session (commonswiki_session), the edit tokens change on each call. Could this also be added as lgSession?
Comment 3 Roan Kattouw 2007-10-05 13:46:10 UTC
(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?
Comment 4 Bryan Tong Minh 2007-10-05 14:40:43 UTC
As return value.
Comment 5 Roan Kattouw 2007-10-05 14:42:35 UTC
(In reply to comment #4)
> As return value.
> 

Why? The user can figure out for themselves the session cookie is lgCookiePrefix . "_session"
Comment 6 Bryan Tong Minh 2007-10-05 14:52:55 UTC
I meant the actual content of the session cookie.
Comment 7 Roan Kattouw 2007-10-05 14:55:13 UTC
(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.
Comment 8 Roan Kattouw 2007-10-08 18:00:31 UTC
Done in r26508

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links