Lines Matching refs:sticky
290 * @param bool $sticky Cookie should not expire
297 function auth_login($user, $pass, $sticky = false, $silent = false) argument
315 $secret = auth_cookiesalt(!$sticky, true); //bind non-sticky to session
316 auth_setCookie($user, auth_encrypt($pass, $secret), $sticky);
329 [$user, $sticky, $pass] = auth_getCookie();
352 $secret = auth_cookiesalt(!$sticky, true); //bind non-sticky to session
354 return auth_login($user, $pass, $sticky, true);
1155 [/* user */, $sticky, /* pass */] = auth_getCookie();
1156 $pass = auth_encrypt($changes['pass'], auth_cookiesalt(!$sticky, true));
1157 auth_setCookie($INPUT->server->str('REMOTE_USER'), $pass, (bool) $sticky);
1404 * @param bool $sticky whether or not the cookie will last beyond the session
1407 function auth_setCookie($user, $pass, $sticky) argument
1418 $cookie = base64_encode($user) . '|' . ((int) $sticky) . '|' . base64_encode($pass);
1420 $time = $sticky ? (time() + 60 * 60 * 24 * 365) : 0; //one year
1449 [$user, $sticky, $pass] = sexplode('|', $_COOKIE[DOKU_COOKIE], 3, '');
1450 $sticky = (bool) $sticky;
1453 return [$user, $sticky, $pass];