One click on "log out", nothing happens.
Click "log out" again, the user shows "logged out". The page "site/logout" gives me "access denied page". When I choose "home", the user still stays logged in. When trying to post something, I did get "access denied" page, so the user is in fact logged out. But it doesn't show this on the first page.
I enabled "cache". Is it the reason?

Comments

samwarren’s picture

I can only override this "fake logged in state" by logging in as another user.
If this is not solved, I have to go back to drupal6.8.

buddy-1’s picture

I am having the exact same problem in drupal 6.1. I hope we find a resolution soon

buddy-1’s picture

Okay, I went to Admin-Site Config-Performance and disabled Page Caching, and all is fine again.

But shouldn't I be able to have Page Caching without this problem?

samwarren’s picture

This happens when I use different user names to log in and out. One way to clean this up is by removing the cookies.
So, it should be related to cookie settings. After I log out, somehow server consider my out and the cookie shows I am still in, or vice versa. Just my guess.
In my settings.php, I have these lines:

# ini_set('session.name', 'localhost');
$base_url = 'http://www.emfocal.com'; // NO trailing slash!
# $cookie_domain = 'emfocal.com';

(emfocal.com is my real site name).
Removing the # sign seems making the situation worse.

Can someone show me how to set the above lines? Or is there any other issues?

samwarren’s picture

One more information. This might be just related to Google Chrome. I don't see this problem with IE.

joodas’s picture

Issue tags: +log out

Perhaps a bit OT, but for people facing a "can't log out" problem not to spend two days trying to figure out what the problem might be:

check the PHP conditions with $user->uid in them.

Having "return ($user->uid = 1)" (= instead of ==) in your block's Page specific visibility settings makes it impossible to log out at all.

mirrie’s picture

where do I check this? Where are the visibility settings to be found?

pwieck’s picture

I have the same problem and had to turn off normal caching like in #3. Block caching seems fine.

I am using Drupal 6.28

Status: Active » Closed (outdated)

Automatically closed because Drupal 6 is no longer supported. If the issue verifiably applies to later versions, please reopen with details and update the version.