6.0.0-beta1
7/18/25

[#10301] Session bug with SQL Sessions
Summary Session bug with SQL Sessions
Queue Horde Framework Packages
Queue Version Git master
Type Bug
State Not A Bug
Priority 1. Low
Owners
Requester horde (at) agotnes (dot) com
Created 07/03/2011 (5129 days ago)
Due
Updated 07/29/2011 (5103 days ago)
Assigned 07/27/2011 (5105 days ago)
Resolved 07/29/2011 (5103 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
07/29/2011 12:54:53 PM Jan Schneider State ⇒ Not A Bug
 
07/29/2011 10:58:50 AM horde (at) agotnes (dot) com Comment #4 Reply to this comment
Thanks for having a look. Since raising this bug I upgraded to PHP5.3 
(from 5.2) - the issue seems to have gone away now that I set logging 
to DEBUG and enabled the SQL based sessions again.

Can't reproduce on my setup - can be closed from my perspective.
07/27/2011 06:50:37 PM Michael Slusarz Comment #3
Summary ⇒ Session bug with SQL Sessions
State ⇒ Feedback
Priority ⇒ 1. Low
Reply to this comment
Reanalyzing this - this is not an issue with Horde.  Most likely the 
DB driver is failing when closing the original session, which is 
causing session_close to fail, so reopening the session is also 
failing (open() in the SQL session driver does nothing, so that can't 
be failing).  You need to look at the HORDE log, not the PHP log, for 
further debugging details.
07/05/2011 06:11:37 PM Michael Slusarz Queue ⇒ Horde Framework Packages
Version ⇒ Git master
 
07/05/2011 06:11:17 PM Michael Slusarz Comment #2 Reply to this comment
When using the SQL Database session handler (and mysqli driver) I 
get the following errors from DIMP and it fails to load any emails;
Dynamic IMP view is special in that it will close an active session 
and reopen it in the same page access in certain instances in order to 
prevent session deadlocks for other simultaneous accesses to the 
server.  So this is not an issue with IMP.

If anything, there is a probably an issue with the way we are closing 
the DB connection when destroying the session that causes the attempt 
to reinitialize the session to fail - this is almost certainly an 
issue within the SQL session driver.
07/03/2011 05:01:28 AM horde (at) agotnes (dot) com Comment #1
Priority ⇒ 3. High
Type ⇒ Bug
Summary ⇒ DIMP - Session bug with SQL Sessions
Queue ⇒ IMP
Milestone ⇒
Patch ⇒ No
State ⇒ Unconfirmed
Reply to this comment
When using the SQL Database session handler (and mysqli driver) I get 
the following errors from DIMP and it fails to load any emails;

PHP Fatal error:  session_start(): Failed to initialize storage 
module: user (path: /tmp) in 
/var[...]/horde4/imp/lib/Ajax/Application.php on line 456
Jul  2 07:22:01 skadi HORDE4: PHP Fatal error:  session_start(): 
Failed to initialize storage module: user (path: /tmp) in 
/var[...]/horde4/imp/lib/Ajax/Application.php on line 685

Other modules (turba/kronolith) work fine with the SQL based session...

If I choose to login to the 'Traditional' interface it works fine, so 
this seems isolated to the DIMP client.

Changing the Session handler in the Horde settings to 'Use the default 
PHP session handler' which is indeed file based in /tmp everything 
works as expected.

Saved Queries