Page MenuHomePhabricator

Call hooks when setting and clearing cookies, for authentication plugins
Closed, ResolvedPublic


Author: chinawab

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){

  1. Override this to do something.



  • do clear
  • @param bool $onlypassword

function clearCookies($onlypassword=false){

  1. Override this to do something.


Version: unspecified
Severity: enhancement



Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 9:49 PM
bzimport set Reference to bz10240.
bzimport added a subscriber: Unknown Object (MLST).

The UserSetCookies and UserLogout hooks work quite nicely for this.