Lines Matching refs:sticky
288 * @param bool $sticky Cookie should not expire
295 function auth_login($user, $pass, $sticky = false, $silent = false) argument
313 $secret = auth_cookiesalt(!$sticky, true); //bind non-sticky to session
314 auth_setCookie($user, auth_encrypt($pass, $secret), $sticky);
327 [$user, $sticky, $pass] = auth_getCookie();
349 $secret = auth_cookiesalt(!$sticky, true); //bind non-sticky to session
351 return auth_login($user, $pass, $sticky, true);
1137 [/* user */, $sticky, /* pass */] = auth_getCookie();
1138 $pass = auth_encrypt($changes['pass'], auth_cookiesalt(!$sticky, true));
1139 auth_setCookie($INPUT->server->str('REMOTE_USER'), $pass, (bool) $sticky);
1386 * @param bool $sticky whether or not the cookie will last beyond the session
1389 function auth_setCookie($user, $pass, $sticky) argument
1400 $cookie = base64_encode($user) . '|' . ((int) $sticky) . '|' . base64_encode($pass);
1402 $time = $sticky ? (time() + 60 * 60 * 24 * 365) : 0; //one year
1431 [$user, $sticky, $pass] = sexplode('|', $_COOKIE[DOKU_COOKIE], 3, '');
1432 $sticky = (bool) $sticky;
1435 return [$user, $sticky, $pass];