GenieGate, Version 1.1.0 (PHP 5) manual

passiveLogin()

public GenieGate_Api_User passiveLogin( groups array = array());

Like login, without the prompt and without the exit.

Use this if you require a login that does not exit automatically.

This looks at the form variables for the username/password pair, checks the session, or inspects PHP_AUTH_USER for the credentials.

returns a GenieGate_Api_User representing the user, or FALSE if it can't login. (such as invalid credentials)