drupal sets a cookie for each collapsable block. if the number of collapsable block is too high, the maximum number of allowed cookies (50 for firefox 3.x, please refer to http://krijnhoetmer.nl/stuff/javascript/maximum-cookies/ for other browsers) is exceeded, and the older cookie, usually PHPSESSID cookie is automatically deleted by the browser in order to make room for other, new cookies.

how to reproduce:
- use firefox 3
- set up (51 or more) collapsable blocks

I think that the way drupal handles the collapsed/non-collapsed state of the blocks should be changed in order to use less cookies, or only one cookie at all, storing the collapsed/non-collapsed server-side.

sorry for my lame english.

Comments

damien tournoud’s picture

By default, Drupal does not manage collapsible blocks. What theme/modules are you using?

kYuZzZz’s picture

I have the collapsiblock module activated. As the Drupal site with this problem is a production site, I cannot deactive it for now, but I guess that this problem depends on this module being active.

damien tournoud’s picture

Project: Drupal core » Collapsiblock
Version: 6.0 » 6.x-1.x-dev
Component: base system » Code

Thanks for your answer. Reassigning to the correct project.

nedjo’s picture

Status: Active » Fixed

Changed the code to use a single cookie rather than multiple and to set the cookie only for blocks that users have clicked, rather than for all blocks.

kYuZzZz’s picture

which version of drupal has this issue fixed?

nedjo’s picture

It's fixed in 6.x.

kYuZzZz’s picture

is it possible to get a patch to fix this issue for the 5.x version of drupal, please?

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.