diff --git a/modules/toolbar/toolbar.js b/modules/toolbar/toolbar.js index aa2e3477076..9c07f78bd71 100644 --- a/modules/toolbar/toolbar.js +++ b/modules/toolbar/toolbar.js @@ -54,7 +54,11 @@ Drupal.admin.toolbar.collapse = function() { $.cookie( 'Drupal.admin.toolbar.collapsed', 1, - {path: Drupal.settings.basePath} + { + path: Drupal.settings.basePath, + // The cookie should "never" expire. + expires: 36500 + } ); } @@ -72,7 +76,11 @@ Drupal.admin.toolbar.expand = function() { $.cookie( 'Drupal.admin.toolbar.collapsed', 0, - {path: Drupal.settings.basePath} + { + path: Drupal.settings.basePath, + // The cookie should "never" expire. + expires: 36500 + } ); }