You are here

function ldapauth_exit in LDAP integration 5

Same name and namespace in other branches
  1. 5.2 ldapauth.module \ldapauth_exit()
  2. 6 ldapauth.module \ldapauth_exit()

File

./ldapauth.module, line 647

Code

function ldapauth_exit() {

  // We delete the login info here, instead of just not storing it at
  // ldapauth_auth(), so at least ldapgroups can use it at login time
  if (variable_get('ldap_forget_passwords', false) && isset($_SESSION['ldap_login'])) {
    unset($_SESSION['ldap_login']);
  }
}