Last modified: 2013-02-14 07:55:38 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T12240, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 10240 - Call hooks when setting and clearing cookies, for authentication plugins
Call hooks when setting and clearing cookies, for authentication plugins
Product: MediaWiki
Classification: Unclassified
User login and signup (Other open bugs)
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2007-06-13 08:22 UTC by King Kong
Modified: 2013-02-14 07:55 UTC (History)
1 user (show)

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


Description King Kong 2007-06-13 08:22:01 UTC
I must set same cookie values for other apps,when user login in.
but i can't find the interface in the AuthPlugin.

maybe the AuthPlugin could append the following methods:

	 * if you will setcookie for extenal apps. put it here
	 * @param  User $user
	 * @param  bool $remember remember passsord for next login
	 * @public
	function setCookies($user, $remember=false){
		# Override this to do something.
	 * do clear 
	 * @param bool $onlypassword
	function clearCookies($onlypassword=false){
		# Override this to do something.
Comment 1 Tyler Romeo 2013-02-14 07:55:38 UTC
The UserSetCookies and UserLogout hooks work quite nicely for this.

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