[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

/src/applications/auth/constants/ -> PhabricatorCookies.php (summary)

Consolidates Phabricator application cookies, including registration and session management.

File Size: 166 lines (5 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 4 functions

  setClientIDCookie()
  setNextURICookie()
  getNextURICookie()
  parseNextURICookie()

Functions
Functions that are not part of a class:

setClientIDCookie(AphrontRequest $request)   X-Ref
Set the client ID cookie. This is a random cookie used like a CSRF value
during authentication workflows.

param: AphrontRequest  Request to modify.
return: void

setNextURICookie(AphrontRequest $request,$next_uri,$force = false)   X-Ref
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.

param: AphrontRequest    Request to write to.
param: string            URI to write.
param: bool              Write this cookie even if we have a fresh
return: void

getNextURICookie(AphrontRequest $request)   X-Ref
Read the URI out of the Next URI cookie.

param: AphrontRequest  Request to examine.
return: string|null     Next URI cookie's URI value.

parseNextURICookie($cookie)   X-Ref
Parse a Next URI cookie into its components.

param: string        Raw cookie value.
return: list<string>  List of timestamp and URI.



Generated: Sun Nov 30 09:20:46 2014 Cross-referenced by PHPXref 0.7.1