Beispiel #1
0
/**
 * Populates the session array with the details of the specified error and
 * redirects the user appropriately.
 *
 * @param String $code The error code that occured
 * @param String $message A description of the error
 */
function openid_error($code, $message)
{
    $_SESSION['openid']['error'] = $message;
    $_SESSION['openid']['errorcode'] = $code;
    URLBuilder::redirect();
}