Constants – predefined constants



Retourné si une session dépasse sa durée d'inactivitée.



Retourné si une session a expirée.



Retourné si le conteneur Auth utilisé est incapable de valider la paire nom d'utilisateur/mot de passe fournie.



Retourné si la fonction demandée n'est pas implémentée par le conteneur Auth utilisé.



Retourné si la vérification avancée de la sécurité a détecté une brèche.



Retourné si the checkAuth callback function aborted the session.

Formulaire d'identification par défaut (Previous) Constructeur (Next)
Last updated: Sun, 29 Aug 2010 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report or add a note.
View this page in:

User Notes:

Note by: suexID
Take a look at this piece of code:

function loginFunction($username = null, $status = null, &$auth = null) {
// Your login page code goes here

As you can see, the auth object has been passed passed to the loginFunction, so there's no point to define the $a as a global. You should use $auth to check the status of the session.
Note by:
I didn't know at first where to use these contants to check for inactivity and failed logins. The problem is that you can't check before you $auth->start() because the auth hasn't been started yet. And you can't do it afterwards since the login page has already been displayed.

You need to do it inside the loginFunction() callback.

function loginFunction() {

global $a;
$status = $a->getStatus();
echo some error about the invalid login
echo your login form.


This seems so logical now, but I spent a good 10 minutes on this. Hopefully this will save