Lines Matching defs:sticky
116 'sticky' => $INPUT->bool('r'),
259 $evdata['sticky'],
287 * @param bool $sticky Cookie should not expire
294 function auth_login($user, $pass, $sticky = false, $silent = false)
311 $secret = auth_cookiesalt(!$sticky, true); //bind non-sticky to session
312 auth_setCookie($user, auth_encrypt($pass, $secret), $sticky);
325 [$user, $sticky, $pass] = auth_getCookie();
347 $secret = auth_cookiesalt(!$sticky, true); //bind non-sticky to session
349 return auth_login($user, $pass, $sticky, true);
1135 [/* user */, $sticky, /* pass */] = auth_getCookie();
1136 $pass = auth_encrypt($changes['pass'], auth_cookiesalt(!$sticky, true));
1137 auth_setCookie($INPUT->server->str('REMOTE_USER'), $pass, (bool) $sticky);
1187 // force and immediate logout including removing the sticky cookie
1384 * @param bool $sticky whether or not the cookie will last beyond the session
1387 function auth_setCookie($user, $pass, $sticky)
1398 $cookie = base64_encode($user) . '|' . ((int) $sticky) . '|' . base64_encode($pass);
1400 $time = $sticky ? (time() + 60 * 60 * 24 * 365) : 0; //one year
1420 * Returns the user, (encrypted) password and sticky bit from cookie
1429 [$user, $sticky, $pass] = sexplode('|', $_COOKIE[DOKU_COOKIE], 3, '');
1430 $sticky = (bool) $sticky;
1433 return [$user, $sticky, $pass];