You are here

function esi_user_logout in ESI: Edge Side Includes 7.3

Implements hook_user_logout().

File

./esi.module, line 261
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_user_logout($account) {

  // Remove all the cookies that have been created.
  $cookie_data = esi__get_cookie_data($account);

  // Transmit the cookies.
  foreach ($cookie_data as $cookie) {
    setcookie($cookie['name'], 'removed', 1, $cookie['path'], $cookie['domain'], $cookie['secure'], $cookie['httponly']);
  }
}