Last modified: 2013-02-14 07:55:38 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 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.