Skip to main content

Action: set_auth_cookie

Khiav tam sim ua ntej authentication cookie raug teeb.

Cov parameter

NameTypeDescription
$auth_cookiestringTus nqi authentication cookie.
$expireintLub 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.
$expirationintLub sij hawm uas authentication cookie tas sij hawm raws li UNIX timestamp. Default yog 14 hnub txij tam sim no.
$user_idintUser ID.
$schemestringAuthentication scheme. Cov nqi muaj xws li 'auth' los sis 'secure_auth'.
$tokenstringTus user lub session token siv rau lub cookie no.

Txij thaum

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

Qhov chaw

Teev tseg hauv inc/sso/auth-functions.php ntawm kab 124