Skip to main content

Ketso: set_auth_cookie

E sebetsa hang-hang pele cookie ya netefatso e behwa.

Dipharamitha

LebitsoMofutaTlhaloso
$auth_cookiestringBoleng ba cookie ya netefatso.
$expireintNako eo nako ya mohau wa ho kena e fellang ka yona e le UNIX timestamp. Ya kamehla ke dihora tse 12 ka mora nako ya ho fela ha cookie.
$expirationintNako eo cookie ya netefatso e fellang ka yona e le UNIX timestamp. Ya kamehla ke matsatsi a 14 ho tloha jwale.
$user_idintID ya mosebedisi.
$schemestringMokgwa wa netefatso. Maboleng ho kenyeletswa 'auth' kapa 'secure_auth'.
$tokenstringToken ya session ya mosebedisi e tla sebediswa bakeng sa cookie ena.

Ho tloha

  • 2.5.0
  • 4.9.0: The $token parameter was added.

Mohlodi

E hlalositswe ho inc/sso/auth-functions.php moleng wa 124