Lines Matching defs:sticky
111 'sticky' => $INPUT->bool('r'),
247 $evdata['sticky'],
275 * @param bool $sticky Cookie should not expire
282 function auth_login($user, $pass, $sticky = false, $silent = false)
299 $secret = auth_cookiesalt(!$sticky, true); //bind non-sticky to session
300 auth_setCookie($user, auth_encrypt($pass, $secret), $sticky);
313 [$user, $sticky, $pass] = auth_getCookie();
335 $secret = auth_cookiesalt(!$sticky, true); //bind non-sticky to session
337 return auth_login($user, $pass, $sticky, true);
1123 [/* user */, $sticky, /* pass */] = auth_getCookie();
1124 $pass = auth_encrypt($changes['pass'], auth_cookiesalt(!$sticky, true));
1125 auth_setCookie($INPUT->server->str('REMOTE_USER'), $pass, (bool) $sticky);
1175 // force and immediate logout including removing the sticky cookie
1361 * @param bool $sticky whether or not the cookie will last beyond the session
1364 function auth_setCookie($user, $pass, $sticky)
1375 $cookie = base64_encode($user) . '|' . ((int) $sticky) . '|' . base64_encode($pass);
1377 $time = $sticky ? (time() + 60 * 60 * 24 * 365) : 0; //one year
1397 * Returns the user, (encrypted) password and sticky bit from cookie
1406 [$user, $sticky, $pass] = sexplode('|', $_COOKIE[DOKU_COOKIE], 3, '');
1407 $sticky = (bool) $sticky;
1410 return [$user, $sticky, $pass];