previousAuth::setLoginCallback() (Previous) (Next) Auth::setSessionName()next

View this page in Last updated: Sun, 18 Oct 2009
English | Brazilian Portuguese | Chinese | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Turkish

Auth::setLogoutCallback()

Auth::setLogoutCallback() – Définit une fonction de callback lors de déconnexion réussie

Synopsis

void Auth::setLogoutCallback ( string $loginCallback )

Description

Cette fonction définit une fonction de callback qui sera appelée lors de déconnexion réussie d'un utilisateur.

La fonction de callback passera deux paramètres, le nom d'utilisareur qui a réussi son identification et une référence à l'objet Auth.

Parameter

string $loginCallback

la fonction de callback à utiliser

Note

This function can not be called statically.

previousAuth::setLoginCallback() (Previous) (Next) Auth::setSessionName()next

Download Documentation Last updated: Sun, 18 Oct 2009
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
Note by: spider312@free.fr
Note that if you die() in this callback, logout procedure won't finish, and you won't be logged out

If you want to die on logout, you'll have to check authentification after logging out, and then die if it isn't ok