You are here

function esi_esi_context_cookies_alter in ESI: Edge Side Includes 7.3

Implements hook_esi_context_cookies_alter().

File

./esi.module, line 488
Adds support for ESI (Edge-Side-Include) integration, allowing components\ to be delivered by ESI, with support for per-component cache times.

Code

function esi_esi_context_cookies_alter(&$cookie_data) {
  $seed = _esi__get_seed();

  // Encrypt each value according to the current seed key.
  foreach ($cookie_data as &$cookie) {
    $cookie['value'] = md5($seed . md5($cookie['value']));
  }
}