public static function setClientIDCookie($request)
public static function setClientIDCookie($request)
Set the client ID cookie. This is a random cookie used like a CSRF value during authentication workflows.
Parameters
AphrontRequest | $request | Request to modify. |
Return
void |
public static function setNextURICookie($request, $next_uri, $force)
public static function setNextURICookie($request, $next_uri, $force)
Set the Next URI cookie. We only write the cookie if it wasn't recently written, to avoid writing over a real URI with a bunch of "humans.txt" stuff. See T3793 for discussion.
Parameters
AphrontRequest | $request | Request to write to. |
string | $next_uri | URI to write. |
bool | $force | Write this cookie even if we have a fresh cookie already. |
Return
void |
public static function getNextURICookie($request)
public static function getNextURICookie($request)
Read the URI out of the Next URI cookie.
Parameters
AphrontRequest | $request | Request to examine. |
Return
string|null | Next URI cookie's URI value. |
private static function parseNextURICookie($cookie)
private static function parseNextURICookie($cookie)
Parse a Next URI cookie into its components.
Parameters
string | $cookie | Raw cookie value. |
Return
list<string> | List of timestamp and URI. |