Action: set_auth_cookie
Ó máa ń ṣiṣẹ́ lẹ́sẹ̀kẹsẹ̀ ṣáájú kí a tó ṣètò cookie ìfàṣẹsí.
Àwọn Parameter
| Orúkọ | Type | Àpèjúwe |
|---|---|---|
| $auth_cookie | string | Iye cookie ìfàṣẹsí. |
| $expire | int | Àkókò tí àkókò àánú login máa parí gẹ́gẹ́ bí UNIX timestamp. Ìbẹ̀rẹ̀ jẹ́ wákàtí 12 lẹ́yìn àkókò ìparí cookie náà. |
| $expiration | int | Àkókò tí cookie ìfàṣẹsí máa parí gẹ́gẹ́ bí UNIX timestamp. Ìbẹ̀rẹ̀ jẹ́ ọjọ́ 14 láti báyìí. |
| $user_id | int | ID oníṣe. |
| $scheme | string | Ètò ìfàṣẹsí. Àwọn iye ní 'auth' tàbí 'secure_auth'. |
| $token | string | session token oníṣe láti lò fún cookie yìí. |
Láti
- 2.5.0
- 4.9.0: The
$tokenparameter was added.
Orísun
A ṣàlàyé rẹ̀ nínú inc/sso/auth-functions.php ní laini 124