Skip to main content

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_cookiestringIye cookie ìfàṣẹsí.
$expireintÀ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áà.
$expirationintÀkókò tí cookie ìfàṣẹsí máa parí gẹ́gẹ́ bí UNIX timestamp. Ìbẹ̀rẹ̀ jẹ́ ọjọ́ 14 láti báyìí.
$user_idintID oníṣe.
$schemestringÈtò ìfàṣẹsí. Àwọn iye ní 'auth' tàbí 'secure_auth'.
$tokenstringsession token oníṣe láti lò fún cookie yìí.

Láti

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

Orísun

A ṣàlàyé rẹ̀ nínú inc/sso/auth-functions.php ní laini 124