diff --git a/includes/session.inc b/includes/session.inc index 84d1983..99b7973 100644 --- a/includes/session.inc +++ b/includes/session.inc @@ -163,7 +163,7 @@ function _drupal_session_write($sid, $value) { try { if (!drupal_save_session()) { // We don't have anything to do if we are not allowed to save the session. - return; + return FALSE; } // Check whether $_SESSION has been changed in this request. @@ -425,7 +425,7 @@ function _drupal_session_destroy($sid) { // Nothing to do if we are not allowed to change the session. if (!drupal_save_session()) { - return; + return FALSE; } // Delete session data. @@ -446,6 +446,7 @@ function _drupal_session_destroy($sid) { elseif (variable_get('https', FALSE)) { _drupal_session_delete_cookie('S' . session_name(), TRUE); } + return TRUE; } /** @@ -466,6 +467,7 @@ function _drupal_session_delete_cookie($name, $secure = NULL) { setcookie($name, '', REQUEST_TIME - 3600, $params['path'], $params['domain'], $params['secure'], $params['httponly']); unset($_COOKIE[$name]); } + return TRUE; } /**