Function __global->has_cookies

Definitions

sources/global3.php

  • Determine whether the user's browser supports cookies or not, and they accepted cookies through cookie consent.Unfortunately this will not return true until the next page hit after they accept cookies.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: bool

Returns

  • Whether the user has definitely got cookies
  • Type: boolean
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Determine whether the user's browser supports cookies or not, and they accepted cookies through cookie consent.Unfortunately this will not return true until the next page hit after they accept cookies.
 *
 * @return boolean Whether the user has definitely got cookies
 */

function has_cookies() : bool