Lines Matching refs:sticky
287 * @param bool $sticky Cookie should not expire
294 function auth_login($user, $pass, $sticky = false, $silent = false) argument
312 $secret = auth_cookiesalt(!$sticky, true); //bind non-sticky to session
313 auth_setCookie($user, auth_encrypt($pass, $secret), $sticky);
326 [$user, $sticky, $pass] = auth_getCookie();
348 $secret = auth_cookiesalt(!$sticky, true); //bind non-sticky to session
350 return auth_login($user, $pass, $sticky, true);
1136 [/* user */, $sticky, /* pass */] = auth_getCookie();
1137 $pass = auth_encrypt($changes['pass'], auth_cookiesalt(!$sticky, true));
1138 auth_setCookie($INPUT->server->str('REMOTE_USER'), $pass, (bool) $sticky);
1385 * @param bool $sticky whether or not the cookie will last beyond the session
1388 function auth_setCookie($user, $pass, $sticky) argument
1399 $cookie = base64_encode($user) . '|' . ((int) $sticky) . '|' . base64_encode($pass);
1401 $time = $sticky ? (time() + 60 * 60 * 24 * 365) : 0; //one year
1430 [$user, $sticky, $pass] = sexplode('|', $_COOKIE[DOKU_COOKIE], 3, '');
1431 $sticky = (bool) $sticky;
1434 return [$user, $sticky, $pass];