drupaldrupal-6drupal-cache

Drupal authenticated user unable to log out


I have been trying to find a solution to a problem I have been having with this new drupal site I created. I created various users with different roles to test that the permissions they are given are in order, and a problem popped up. This has been tested in IE and Opera, Firefox doesn't seem to have this problem. If I am logged in as an authenicated user I can view specific data like, certain views, certain pages, etc. After I logout and become anonymous, I can browse around, restricted of course, but in a few seconds I find that the user is logged in again.

Drupal Version: 6.20
I checked this link here (after logout some pages are show as logged in? #86) and it looked promising, but there was no definitive solution. This link (Session doesn't expire on user logout!) also pointed to the fact that it may be a caching issue, but after following the instructions in the first link no solution has been reached.

Can anyone help?


Solution

  • use this code:

    function hook_user($op, & $edit, & $account, $category = NULL) {
      switch ($op) {
        case 'logout':
          cache_clear_all();
          break;
      }
    }