With one click, this simple script will execute multiple terminations:
Moodle
Elgg
2 MyBB and
(not) Drupal.
<?php setcookie( 'Elgg', '', -3600, '/', '.domain.com', false, false); setcookie( 'http_auth_ext_complete', '1', -3600, '/d/', '.domain.com', false, false); // setcookie( 'http_auth_ext_complete', '1', -3600, '/d/', 'domain.com', false, false); setcookie( 'mybbuser', '', -3600, '/', '.domain.com', false, false); setcookie( 'mybbuser', '', -3600, '/bb/', '.domain.com', false, false); // unset all 3 Moodle cookies, the lazy way if (isset($_SERVER['HTTP_COOKIE'])) { $cookies = explode(';', $_SERVER['HTTP_COOKIE']); foreach($cookies as $cookie) { $parts = explode('=', $cookie); $name = trim($parts[0]); setcookie($name, '', time()-1000); setcookie($name, '', time()-1000, '/'); } } ?>
This works on four sites, but the Drupal cookie will not go away. How can I do the same with Drupal?
Note: Drupal uses a "host" instead of a "domain", neither with "or" nor with. still working.
Thanks.
EDIT: I'm sure the cookie had βHost domain.comβ twice and the other standard format βDomain.domain.comβ was used on the other input.
The cookie named "http_auth_ext_complete" expires and I am still logged in. Drupal uses a second cookie with a session identifier as the name of cookie +, there is a corresponding entry in the session database table, as well.