Drupal Logout Bug

In Drupal 6.3 or less versions, there is bug in the drupal logout functionality.  This seems to be cache related.

If I am logged in to two browser tabs on Firefox and tried to logout in one tab and refresh the site in another tab I see the below problem -
Problem: If I tried to login or logout it says access denied but it shows the admin section links at the top.  When i click on any of the admin links it says access denied.

So you might overcome this issue, by changing the line
header(“Cache-Control: store, no-cache, must-revalidate”);
header(“Cache-Control: no-store, no-cache, must-revalidate”);

in function drupal_page_header() in ./include/bootstrap.inc

And clear the cache and refresh your page.

You can also find some insights at http://drupal.org/node/197786

4 Comments so far

Thankyou so much, I’m a newbie with Drupal & I’ve been driving myself nuts trying to fugure out why the site won’t darn well log out – suddenly it’s fixed!

Hmm – I’l have to revise that – it seems to work fine on my Mac with Safari / Firefox – but the problem still remains on Explorer(8.00) – why doesn’t that surprise me….?

However – disabling cache fix it in Explorer…for now…thanks for the help and advice


I am glad it worked!

Leave a comment




profileWeb Developer working in advertising agency.

Recent tweets

The Twitter REST API v1 is no longer active. Please migrate to API v1.1. https://dev.twitter.com/docs/api/1.1/overview.