Ketso: set_auth_cookie
E sebetsa hang-hang pele cookie ya netefatso e behwa.
Dipharamitha
| Lebitso | Mofuta | Tlhaloso |
|---|---|---|
| $auth_cookie | string | Boleng ba cookie ya netefatso. |
| $expire | int | Nako 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. |
| $expiration | int | Nako eo cookie ya netefatso e fellang ka yona e le UNIX timestamp. Ya kamehla ke matsatsi a 14 ho tloha jwale. |
| $user_id | int | ID ya mosebedisi. |
| $scheme | string | Mokgwa wa netefatso. Maboleng ho kenyeletswa 'auth' kapa 'secure_auth'. |
| $token | string | Token ya session ya mosebedisi e tla sebediswa bakeng sa cookie ena. |
Ho tloha
- 2.5.0
- 4.9.0: The
$tokenparameter was added.
Mohlodi
E hlalositswe ho inc/sso/auth-functions.php moleng wa 124