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

View this page in Last updated: Mon, 02 Jul 2007
English | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Plain HTML

Auth::setLogoutCallback()

Auth::setLogoutCallback() -- set a callback for successful logout attempts

Opis

This function sets a callback function which is called upon successful logout of a user account.

The callback function will be passed two parameters, the username that successfully logged out and a reference to the Auth object.

Parametr

string $loginCallback

the call back function to use

Uwagi

Ta funkcja nie może być wywołana statycznie.

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

Download Documentation Last updated: Mon, 02 Jul 2007
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