Active
Project:
Javascript Tools
Version:
5.x-0.6
Component:
Jstools core
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
26 Apr 2007 at 07:04 UTC
Updated:
12 Dec 2008 at 15:38 UTC
Jump to comment: Most recent file
Comments
Comment #1
heimstein commentedhello gracearoha,
dear maintainers,
imho, this is an critical BUG. klaus hartl's jQuery.cookie (or improper usage of that function) is messing things up in a horrible way. so here's my story:
- update from jstools-0.3 to 0.6 on 2007-04-28
- first impression: fine! (i am mostly using FF2, not IE. did only sporadic checks with IE)
- yesterday: was logged out without reason (somehow the session-cookie didn't work anymore)
- unwanted logout happens reproduceable in IE7 after "some" clicks araound the my site (where "some" is an integer between 1 an 10)
- it happens never in IE6
- and only occasionally(!) in FF2 (puuuhh!)
- caused me a lot of headache and a night without sleep... (i updated a lot of modules in the last time and hacked many, so i had to search the entire site for recent changes)
- after many, many hours of investigation, i detected that the update of jstools is the reason
- found in jquery.cookie.js approx. line 72. commented out the line.
this unfortunately deactivates the (very nice!!) persistence of collapsible-block's state, but stops those unacceptable logouts for me.
Comment #2
nedjoThanks for the note.
This error may be addressed in the latest version of the cookie plugin. But that version may not work with Drupal jQuery. Anyone have time to check into this?
Comment #3
heimstein commentedjust changed the title of that issue...
Comment #4
gracearoha commentedAnything new happening on this issue?
Comment #5
nedjoI'm hoping someone - e.g., one of you who are reporting this issue - will do the small amount of legwork to test the latest version of the library and see if it solves this issue without raising new ones. In other words, that "something new happening on this issue" could be you!
http://jqueryjs.googlecode.com/svn/trunk/plugins/cookie/
Comment #6
dmarble commentedFriends, this is my first contribution since diving into Drupal. I hated Drupal for a number of hours today before finding this thread which pointed me to jquery.cookie.js.
My solution, which so far seems to fix the random logouts I was having on IE 7, is to explicitly declare the path instead of leaving it out by default.
In jquery.cookie.js (either the version that comes w/ jstools or the latest pointed to by nedjo), change:
to the following:
Comment #7
skorch commentedI've got users reporting the same problem with IE (new and old versions). It seems to only happen during node edits/creation or adding comments. Typically when you get to the edit screen (vs submit).
I applied dmarble's patch but it didn't help for me. It got me to the edit screen, but I was logged out upon submit.
For me, the guilty module is the Collapsiblock. Once this was disabled, I had no problems.
Currently active JSTools modules:
ActiveMenu
AJAX Submit
DynamicLoad
JSCalendar
JSTools
Comment #8
csc4 commentedTracking - I have users with this problem too.
Comment #9
nedjoSo we've tracked the problem down to the jQuery cookie extension and more specifically to its path option. So far so good.
Setting the path to '/' works for some people but not for others.
It looks like we need to feed in the base path. Here's an untested patch to do so.
Please test and report back.
Comment #10
nedjoMore descriptive title.
Comment #11
nedjoI've applied the patch. Please reopen this issue if that didn't fix it.
Comment #12
(not verified) commentedComment #13
Rhino25782 commentedI have the patch applied but the problem persists that IE users get logged out invariably.
Comment #14
kYuZzZz commentedmaybe the maximum number of cookies has been exceeded.
so the older cookie (usually PHPSESSID) has been deleted and then automatically re-created.
I'm not definitely sure, but this issue could be related to how drupal manages the collapsed-state of the blocks. too many cookies per single domain are a problem.
Comment #15
kYuZzZz commentedI have opened this issue http://drupal.org/node/345684 about this.