Search for cookies

  1. Search 7.x for cookies
  2. Search 9.5.x for cookies
  3. Search 10.3.x for cookies
  4. Search 11.x for cookies
  5. Other projects
Title Object type File name Summary
BrowserTest::$cookieSet property core/modules/simpletest/src/Tests/BrowserTest.php A flag indicating whether a cookie has been set in a test.
BrowserTest::testCookies function core/modules/simpletest/src/Tests/BrowserTest.php Tests that cookies set during a request are available for testing.
BrowserTestBase::getSessionCookies function core/tests/Drupal/Tests/BrowserTestBase.php Get session cookies from current session.
cache_context.cookies service core/core.services.yml Drupal\Core\Cache\Context\CookiesCacheContext
CookiesCacheContext class core/lib/Drupal/Core/Cache/Context/CookiesCacheContext.php Defines the CookiesCacheContext service, for "per cookie" caching.
CookiesCacheContext.php file core/lib/Drupal/Core/Cache/Context/CookiesCacheContext.php
CookiesCacheContext::getCacheableMetadata function core/lib/Drupal/Core/Cache/Context/CookiesCacheContext.php Gets the cacheability metadata for the context based on the parameter value.
CookiesCacheContext::getContext function core/lib/Drupal/Core/Cache/Context/CookiesCacheContext.php Returns the string representation of the cache context.
CookiesCacheContext::getLabel function core/lib/Drupal/Core/Cache/Context/CookiesCacheContext.php Returns the label of the cache context.
JsCookieTestController::jqueryCookieShimTest function core/modules/system/tests/modules/js_cookie_test/src/Controller/JsCookieTestController.php Provides buttons to add and remove cookies using JavaScript.
RESTTestBase::cookies function core/modules/rest/src/Tests/RESTTestBase.php Calculates cookies used by guzzle later.
SessionConfigurationTest::providerTestCookieSecure function core/tests/Drupal/Tests/Core/Session/SessionConfigurationTest.php Data provider for the cookie secure test.
SessionConfigurationTest::testCookieSecure function core/tests/Drupal/Tests/Core/Session/SessionConfigurationTest.php Tests whether the session.cookie_secure ini settings is computed correctly.
SessionConfigurationTest::testCookieSecureNotOverridable function core/tests/Drupal/Tests/Core/Session/SessionConfigurationTest.php Tests that session.cookie_secure ini settings cannot be overridden.
UserLoginHttpTest::$cookies property core/modules/user/tests/src/Functional/UserLoginHttpTest.php The cookie jar.
WebTestBase::$cookies property core/modules/simpletest/src/WebTestBase.php The cookies of the page currently loaded in the internal browser.
WebTestBase::$curlCookies property core/modules/simpletest/src/WebTestBase.php Cookies to set on curl requests.
XdebugRequestTrait::extractCookiesFromRequest function core/tests/Drupal/Tests/XdebugRequestTrait.php Adds xdebug cookies, from request setup.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.