Action: set_auth_cookie
Khiav tam sim ua ntej authentication cookie raug teeb.
Cov parameter
| Name | Type | Description |
|---|---|---|
| $auth_cookie | string | Tus nqi authentication cookie. |
| $expire | int | Lub sij hawm uas lub caij pub nkag login tas sij hawm raws li UNIX timestamp. Default yog 12 teev tom qab lub cookie lub sij hawm tas. |
| $expiration | int | Lub sij hawm uas authentication cookie tas sij hawm raws li UNIX timestamp. Default yog 14 hnub txij tam sim no. |
| $user_id | int | User ID. |
| $scheme | string | Authentication scheme. Cov nqi muaj xws li 'auth' los sis 'secure_auth'. |
| $token | string | Tus user lub session token siv rau lub cookie no. |
Txij thaum
- 2.5.0
- 4.9.0: The
$tokenparameter was added.
Qhov chaw
Teev tseg hauv inc/sso/auth-functions.php ntawm kab 124