Created
March 19, 2012 17:30
-
-
Save opi/2120338 to your computer and use it in GitHub Desktop.
Drupal (6) login & logout issue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Implements hook_init(). | |
*/ | |
function mymodule_init() { | |
// Override Drupal default header. | |
// See http://www.journeymm.com/blogs/drupal/drupal-loginlogout-caching-problem | |
// and http://sriramk.com/blog/2007/06/firefox-and-ie-deal-with-no-cache.html | |
header("Cache-Control: no-store, no-cache, must-revalidate"); | |
header("Cache-Control: post-check=0, pre-check=0", FALSE); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment