phpCAS client initializer.
- Parameters
-
string | $server_version | the version of the CAS server |
string | $server_hostname | the hostname of the CAS server |
int | $server_port | the port the CAS server is running on |
string | $server_uri | the URI the CAS server is responding on |
bool | $changeSessionID | Allow phpCAS to change the session_id (Single Sign Out/handleLogoutRequests is based on that change) |
\SessionHandlerInterface | $sessionHandler | the session handler |
- Returns
- void a newly created CAS_Client object
- Note
- Only one of the phpCAS::client() and phpCAS::proxy functions should be called, only once, and before all other methods (except phpCAS::getVersion() and phpCAS::setDebug()).
- Examples:
- example_advanced_saml11.php, example_custom_urls.php, example_gateway.php, example_html.php, example_lang.php, example_logout.php, example_service.php, example_service_POST.php, and example_simple.php.
Definition at line 345 of file CAS.php.
References phpCAS\error(), phpCAS\traceBegin(), and phpCAS\traceEnd().