too many collapsable blocks causes the user to be logged out

kYuZzZz - December 11, 2008 - 11:23
Project:Collapsiblock
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

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.

#1

Damien Tournoud - December 11, 2008 - 11:35

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

#2

kYuZzZz - December 11, 2008 - 20:48

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.

#3

Damien Tournoud - December 11, 2008 - 20:58
Project:Drupal» Collapsiblock
Version:6.0» 6.x-1.x-dev
Component:base system» Code

Thanks for your answer. Reassigning to the correct project.

#4

nedjo - December 13, 2008 - 02:02
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.

#5

kYuZzZz - December 13, 2008 - 12:36

which version of drupal has this issue fixed?

#6

nedjo - December 13, 2008 - 14:08

It's fixed in 6.x.

#7

kYuZzZz - December 15, 2008 - 16:09

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

#8

System Message - December 29, 2008 - 16:12
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.