Lines Matching refs:sticky
289 * @param bool $sticky Cookie should not expire
296 function auth_login($user, $pass, $sticky = false, $silent = false) argument
314 $secret = auth_cookiesalt(!$sticky, true); //bind non-sticky to session
315 auth_setCookie($user, auth_encrypt($pass, $secret), $sticky);
328 [$user, $sticky, $pass] = auth_getCookie();
351 $secret = auth_cookiesalt(!$sticky, true); //bind non-sticky to session
353 return auth_login($user, $pass, $sticky, true);
1139 [/* user */, $sticky, /* pass */] = auth_getCookie();
1140 $pass = auth_encrypt($changes['pass'], auth_cookiesalt(!$sticky, true));
1141 auth_setCookie($INPUT->server->str('REMOTE_USER'), $pass, (bool) $sticky);
1388 * @param bool $sticky whether or not the cookie will last beyond the session
1391 function auth_setCookie($user, $pass, $sticky) argument
1402 $cookie = base64_encode($user) . '|' . ((int) $sticky) . '|' . base64_encode($pass);
1404 $time = $sticky ? (time() + 60 * 60 * 24 * 365) : 0; //one year
1433 [$user, $sticky, $pass] = sexplode('|', $_COOKIE[DOKU_COOKIE], 3, '');
1434 $sticky = (bool) $sticky;
1437 return [$user, $sticky, $pass];