diff includes/session.inc @ 13:8b6c45761e01 6.6

Drupal 6.6
author Franck Deroche <webmaster@defr.org>
date Tue, 23 Dec 2008 14:32:33 +0100
parents 589fb7c02327
children 4347c45bb494
line wrap: on
line diff
--- a/includes/session.inc	Tue Dec 23 14:32:19 2008 +0100
+++ b/includes/session.inc	Tue Dec 23 14:32:33 2008 +0100
@@ -1,5 +1,5 @@
 <?php
-// $Id: session.inc,v 1.44.2.3 2008/09/17 07:53:08 goba Exp $
+// $Id: session.inc,v 1.44.2.4 2008/10/20 09:53:32 goba Exp $
 
 /**
  * @file
@@ -61,7 +61,7 @@
   // the session table. This reduces memory and server load, and gives more useful
   // statistics. We can't eliminate anonymous session table rows without breaking
   // the throttle module and the "Who's Online" block.
-  if (!session_save_session() || (empty($_COOKIE[session_name()]) && empty($value))) {
+  if (!session_save_session() || ($user->uid == 0 && empty($_COOKIE[session_name()]) && empty($value))) {
     return TRUE;
   }