? _login.patch
? files
? latest.html
? modules/devel
? modules/game
? sites/feast-or-fa.mine.nu.drupal
Index: includes/common.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/common.inc,v
retrieving revision 1.542
diff -u -p -r1.542 common.inc
--- includes/common.inc	8 Jun 2006 21:23:40 -0000	1.542
+++ includes/common.inc	23 Jun 2006 17:50:58 -0000
@@ -258,6 +258,14 @@ function drupal_goto($path = '', $query 
     extract(parse_url($_REQUEST['edit']['destination']));
   }
 
+  // if this is a login/logout action of some sort, we'll create a timestamped
+  // final URL so that browsers don't return the user to a cached page (where
+  // it would appear as if they never logged in or out).
+  if (isset($_REQUEST['edit']['form_id']) && $_REQUEST['edit']['form_id'] == 'user_login_block' ||
+      $_REQUEST['edit']['form_id'] == 'user_login' || $_REQUEST['q'] == 'logout' || $_REQUEST['q'] == 'user') { 
+    $query = isset($query) ? "$query&seed=".time() : 'seed='.time();
+  }
+
   $url = url($path, $query, $fragment, TRUE);
 
   // Before the redirect, allow modules to react to the end of the page request.
