function simple_ldap_sso_decrypt in Simple LDAP 7
Same name and namespace in other branches
- 7.2 simple_ldap_sso/simple_ldap_sso.inc \simple_ldap_sso_decrypt()
Decrypt a string to an array of session data.
1 call to simple_ldap_sso_decrypt()
- simple_ldap_sso_get_cookie_data in simple_ldap_sso/
simple_ldap_sso.inc - Read the SSO data from the cookie.
File
- simple_ldap_sso/
simple_ldap_sso.inc, line 253 - Simple LDAP SSO API functions.
Code
function simple_ldap_sso_decrypt($string) {
$serialized = _simple_ldap_encrypt_decrypt($string, FALSE);
if ($serialized && ($data = @unserialize($serialized))) {
return $data;
}
return FALSE;
}