<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>Logout failed with mysql session handler</title> 
  <pubDate>Fri, 10 Apr 2026 04:38:50 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/7618</link> 
  <atom:link rel="self" type="application/rss+xml" title="Logout failed with mysql session handler" href="https://bugs.horde.org/ticket/7618/rss" /> 
  <description>Logout failed with mysql session handler</description> 
 
   
   
  <item> 
   <title>Hello,

I would notice failed logout from horde when I set M</title> 
   <description>Hello,

I would notice failed logout from horde when I set MySql session handler. After logout the following page has shown:



&quot;We cannot verify that this request was really sent by you. It could be a malicious request.&quot;



This happens only after the upgrade with same configuration from horde-groupware-webmail edition 1.1.3.



I set logging to debug, but I don&#039;t see particular info when the error page is loaded:



2008-10-31T13:27:48.521862+01:00 vm-wm1 HORDE[27594]: [horde] SQL Query by SessionHandler_mysql::_read(): query = &quot;SELECT session_data FROM horde_sessionhandler WHERE session_id = &#039;rfs2mupupttp6g45cq37gqpkv3&#039; FOR UPDATE&quot; [pid 27594 on line 139 of &quot;/var/www/html/horde-webmail-1.2/lib/Horde/SessionHandler/mysql.php&quot;]

2008-10-31T13:27:48.530715+01:00 vm-wm1 HORDE[27594]: [horde] Connected to the following memcache servers:23.23.23.23:11211, 23.23.23.24:11211, 23.23.23.25:11211, 23.23.23.26:11211, 23.23.23.27:11211 [pid 27594 on line 127 of &quot;/var/www/html/horde-webmail-1.2/lib/Horde/Memcache.php&quot;]

2008-10-31T13:27:48.605488+01:00 vm-wm1 HORDE[27594]: [horde] Max memory usage: 7864320 bytes [pid 27594 on line 339 of &quot;/var/www/html/horde-webmail-1.2/lib/Horde/Registry.php&quot;]

2008-10-31T13:27:49.509675+01:00 vm-wm1 HORDE[27573]: [horde] SQL Query by SessionHandler_mysql::_read(): query = &quot;SELECT session_data FROM horde_sessionhandler WHERE session_id = &#039;spg7isdick0fifkop111ksjlk6&#039; FOR UPDATE&quot; [pid 27573 on line 139 of &quot;/var/www/html/horde-webmail-1.2/lib/Horde/SessionHandler/mysql.php&quot;]

2008-10-31T13:27:49.531630+01:00 vm-wm1 HORDE[27573]: [horde] Connected to the following memcache servers:23.23.23.23:11211, 23.23.23.24:11211, 23.23.23.25:11211, 23.23.23.26:11211, 23.23.23.27:11211 [pid 27573 on line 127 of &quot;/var/www/html/horde-webmail-1.2/lib/Horde/Memcache.php&quot;]

2008-10-31T13:27:49.556592+01:00 vm-wm1 HORDE[27573]: [horde] Max memory usage: 7077888 bytes [pid 27573 on line 339 of &quot;/var/www/html/horde-webmail-1.2/lib/Horde/Registry.php&quot;]

2008-10-31T13:27:49.563092+01:00 vm-wm1 HORDE[27573]: [horde] Session data unchanged (id = spg7isdick0fifkop111ksjlk6) [pid 27573 on line 253 of &quot;/var/www/html/horde-webmail-1.2/lib/Horde/SessionHandler.php&quot;]



This is my conf.php:



$conf[&#039;vhosts&#039;] = false;

$conf[&#039;debug_level&#039;] = E_ALL &amp; ~E_NOTICE;

$conf[&#039;max_exec_time&#039;] = 0;

$conf[&#039;compress_pages&#039;] = true;

$conf[&#039;secret_key&#039;] = &#039;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&#039;;

$conf[&#039;umask&#039;] = 077;

$conf[&#039;use_ssl&#039;] = 2;

$conf[&#039;server&#039;][&#039;name&#039;] = $_SERVER[&#039;SERVER_NAME&#039;];

$conf[&#039;server&#039;][&#039;port&#039;] = $_SERVER[&#039;SERVER_PORT&#039;];

$conf[&#039;urls&#039;][&#039;token_lifetime&#039;] = 60;

$conf[&#039;urls&#039;][&#039;hmac_lifetime&#039;] = 30;

$conf[&#039;urls&#039;][&#039;pretty&#039;] = false;

$conf[&#039;safe_ips&#039;] = array();

$conf[&#039;session&#039;][&#039;name&#039;] = &#039;Horde&#039;;

$conf[&#039;session&#039;][&#039;use_only_cookies&#039;] = true;

$conf[&#039;session&#039;][&#039;cache_limiter&#039;] = &#039;nocache&#039;;

$conf[&#039;session&#039;][&#039;timeout&#039;] = 0;

$conf[&#039;cookie&#039;][&#039;domain&#039;] = $_SERVER[&#039;SERVER_NAME&#039;];

$conf[&#039;cookie&#039;][&#039;path&#039;] = &#039;/&#039;;

$conf[&#039;sql&#039;][&#039;persistent&#039;] = true;

$conf[&#039;sql&#039;][&#039;username&#039;] = &#039;userdb&#039;;

$conf[&#039;sql&#039;][&#039;password&#039;] = &#039;xxxx&#039;;

$conf[&#039;sql&#039;][&#039;hostspec&#039;] = &#039;host.it&#039;;

$conf[&#039;sql&#039;][&#039;port&#039;] = 3355;

$conf[&#039;sql&#039;][&#039;protocol&#039;] = &#039;tcp&#039;;

$conf[&#039;sql&#039;][&#039;database&#039;] = &#039;mydb&#039;;

$conf[&#039;sql&#039;][&#039;charset&#039;] = &#039;iso-8859-1&#039;;

$conf[&#039;sql&#039;][&#039;splitread&#039;] = false;

$conf[&#039;sql&#039;][&#039;phptype&#039;] = &#039;mysql&#039;;

$conf[&#039;auth&#039;][&#039;admins&#039;] = array(&#039;hordemaster&#039;);

$conf[&#039;auth&#039;][&#039;checkip&#039;] = true;

$conf[&#039;auth&#039;][&#039;checkbrowser&#039;] = true;

$conf[&#039;auth&#039;][&#039;alternate_login&#039;] = false;

$conf[&#039;auth&#039;][&#039;redirect_on_logout&#039;] = false;

$conf[&#039;auth&#039;][&#039;params&#039;][&#039;app&#039;] = &#039;imp&#039;;

$conf[&#039;auth&#039;][&#039;driver&#039;] = &#039;application&#039;;

$conf[&#039;signup&#039;][&#039;allow&#039;] = false;

$conf[&#039;log&#039;][&#039;priority&#039;] = PEAR_LOG_DEBUG;

$conf[&#039;log&#039;][&#039;ident&#039;] = &#039;HORDE&#039;;

$conf[&#039;log&#039;][&#039;params&#039;] = array();

$conf[&#039;log&#039;][&#039;name&#039;] = LOG_LOCAL6;

$conf[&#039;log&#039;][&#039;type&#039;] = &#039;syslog&#039;;

$conf[&#039;log&#039;][&#039;enabled&#039;] = true;

$conf[&#039;log_accesskeys&#039;] = false;

$conf[&#039;prefs&#039;][&#039;params&#039;][&#039;driverconfig&#039;] = &#039;horde&#039;;

$conf[&#039;prefs&#039;][&#039;driver&#039;] = &#039;sql&#039;;

$conf[&#039;alarms&#039;][&#039;params&#039;][&#039;driverconfig&#039;] = &#039;horde&#039;;

$conf[&#039;alarms&#039;][&#039;params&#039;][&#039;ttl&#039;] = 300;

$conf[&#039;alarms&#039;][&#039;driver&#039;] = &#039;sql&#039;;

$conf[&#039;datatree&#039;][&#039;params&#039;][&#039;driverconfig&#039;] = &#039;horde&#039;;

$conf[&#039;datatree&#039;][&#039;driver&#039;] = &#039;sql&#039;;

$conf[&#039;group&#039;][&#039;driverconfig&#039;] = &#039;horde&#039;;

$conf[&#039;group&#039;][&#039;driver&#039;] = &#039;sql&#039;;

$conf[&#039;group&#039;][&#039;cache&#039;] = false;

$conf[&#039;perms&#039;][&#039;driverconfig&#039;] = &#039;horde&#039;;

$conf[&#039;perms&#039;][&#039;driver&#039;] = &#039;sql&#039;;

$conf[&#039;share&#039;][&#039;no_sharing&#039;] = true;

$conf[&#039;share&#039;][&#039;any_group&#039;] = false;

$conf[&#039;share&#039;][&#039;cache&#039;] = false;

$conf[&#039;share&#039;][&#039;driver&#039;] = &#039;sql&#039;;

$conf[&#039;cache&#039;][&#039;default_lifetime&#039;] = 86400;

$conf[&#039;cache&#039;][&#039;driver&#039;] = &#039;memcache&#039;;

$conf[&#039;lock&#039;][&#039;params&#039;][&#039;driverconfig&#039;] = &#039;horde&#039;;

$conf[&#039;lock&#039;][&#039;driver&#039;] = &#039;sql&#039;;

$conf[&#039;token&#039;][&#039;params&#039;][&#039;driverconfig&#039;] = &#039;horde&#039;;

$conf[&#039;token&#039;][&#039;driver&#039;] = &#039;sql&#039;;

$conf[&#039;mailer&#039;][&#039;params&#039;][&#039;host&#039;] = &#039;smtp.it&#039;;

$conf[&#039;mailer&#039;][&#039;params&#039;][&#039;auth&#039;] = false;

$conf[&#039;mailer&#039;][&#039;type&#039;] = &#039;smtp&#039;;

$conf[&#039;mailformat&#039;][&#039;brokenrfc2231&#039;] = false;

$conf[&#039;vfs&#039;][&#039;type&#039;] = &#039;none&#039;;

$conf[&#039;sessionhandler&#039;][&#039;params&#039;][&#039;persistent&#039;] = true;

$conf[&#039;sessionhandler&#039;][&#039;params&#039;][&#039;rowlocking&#039;] = true;

$conf[&#039;sessionhandler&#039;][&#039;params&#039;][&#039;port&#039;] = 3355;

$conf[&#039;sessionhandler&#039;][&#039;params&#039;][&#039;protocol&#039;] = &#039;tcp&#039;;

$conf[&#039;sessionhandler&#039;][&#039;params&#039;][&#039;hostspec&#039;] = &#039;host.it&#039;;

$conf[&#039;sessionhandler&#039;][&#039;params&#039;][&#039;username&#039;] = &#039;userdb&#039;;

$conf[&#039;sessionhandler&#039;][&#039;params&#039;][&#039;password&#039;] = &#039;xxxxx&#039;;

$conf[&#039;sessionhandler&#039;][&#039;params&#039;][&#039;database&#039;] = &#039;mydb&#039;;

$conf[&#039;sessionhandler&#039;][&#039;type&#039;] = &#039;mysql&#039;;

$conf[&#039;sessionhandler&#039;][&#039;memcache&#039;] = false;

$conf[&#039;mime&#039;][&#039;magic_db&#039;] = &#039;/usr/share/file/magic&#039;;

$conf[&#039;problems&#039;][&#039;email&#039;] = &#039;falon@csi.it&#039;;

$conf[&#039;problems&#039;][&#039;maildomain&#039;] = &#039;csi.it&#039;;

$conf[&#039;problems&#039;][&#039;tickets&#039;] = false;

$conf[&#039;problems&#039;][&#039;attachments&#039;] = true;

$conf[&#039;menu&#039;][&#039;apps&#039;] = array();

$conf[&#039;menu&#039;][&#039;always&#039;] = false;

$conf[&#039;menu&#039;][&#039;links&#039;][&#039;help&#039;] = &#039;all&#039;;

$conf[&#039;menu&#039;][&#039;links&#039;][&#039;options&#039;] = &#039;authenticated&#039;;

$conf[&#039;menu&#039;][&#039;links&#039;][&#039;problem&#039;] = &#039;never&#039;;

$conf[&#039;menu&#039;][&#039;links&#039;][&#039;login&#039;] = &#039;all&#039;;

$conf[&#039;menu&#039;][&#039;links&#039;][&#039;logout&#039;] = &#039;authenticated&#039;;

$conf[&#039;hooks&#039;][&#039;permsdenied&#039;] = false;

$conf[&#039;hooks&#039;][&#039;username&#039;] = false;

$conf[&#039;hooks&#039;][&#039;preauthenticate&#039;] = true;

$conf[&#039;hooks&#039;][&#039;postauthenticate&#039;] = false;

$conf[&#039;hooks&#039;][&#039;authldap&#039;] = false;

$conf[&#039;hooks&#039;][&#039;groupldap&#039;] = false;

$conf[&#039;portal&#039;][&#039;fixed_blocks&#039;] = array(&#039;horde:weatherdotcom&#039;);

$conf[&#039;weatherdotcom&#039;][&#039;partner_id&#039;] = &#039;xxxxxxxx&#039;;

$conf[&#039;weatherdotcom&#039;][&#039;license_key&#039;] = &#039;xxxxxxxx&#039;;

$conf[&#039;accounts&#039;][&#039;params&#039;][&#039;host&#039;] = &#039;23.23.23.29&#039;;

$conf[&#039;accounts&#039;][&#039;params&#039;][&#039;port&#039;] = 388;

$conf[&#039;accounts&#039;][&#039;params&#039;][&#039;basedn&#039;] = &#039;c=IT&#039;;

$conf[&#039;accounts&#039;][&#039;params&#039;][&#039;binddn&#039;] = &#039;brother&#039;;

$conf[&#039;accounts&#039;][&#039;params&#039;][&#039;password&#039;] = &#039;syster&#039;;

$conf[&#039;accounts&#039;][&#039;params&#039;][&#039;attr&#039;] = &#039;uid&#039;;

$conf[&#039;accounts&#039;][&#039;params&#039;][&#039;version&#039;] = &#039;3&#039;;

$conf[&#039;accounts&#039;][&#039;params&#039;][&#039;strip&#039;] = false;

$conf[&#039;accounts&#039;][&#039;driver&#039;] = &#039;ldap&#039;;

$conf[&#039;user&#039;][&#039;verify_from_addr&#039;] = false;

$conf[&#039;imsp&#039;][&#039;enabled&#039;] = false;

$conf[&#039;kolab&#039;][&#039;enabled&#039;] = false;

$conf[&#039;memcache&#039;][&#039;hostspec&#039;] = array(&#039;23.23.23.23&#039;, &#039;23.23.23.24&#039;, &#039;23.23.23.25&#039;, &#039;23.23.23.26&#039;, &#039;23.23.23.27&#039;);

$conf[&#039;memcache&#039;][&#039;port&#039;] = array(&#039;11211&#039;, &#039;11211&#039;, &#039;11211&#039;, &#039;11211&#039;, &#039;11211&#039;);

$conf[&#039;memcache&#039;][&#039;weight&#039;] = array(&#039;1&#039;, &#039;1&#039;, &#039;1&#039;, &#039;1&#039;, &#039;1&#039;);

$conf[&#039;memcache&#039;][&#039;persistent&#039;] = true;

$conf[&#039;memcache&#039;][&#039;compression&#039;] = false;

$conf[&#039;memcache&#039;][&#039;large_items&#039;] = true;

$conf[&#039;memcache&#039;][&#039;enabled&#039;] = true;

/* CONFIG END. DO NOT CHANGE ANYTHING IN OR BEFORE THIS LINE. */



I see that logout works if I use memcache as custom session handler.

I thank you very much

Best Regards

marco</description> 
   <pubDate>Fri, 31 Oct 2008 12:42:08 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7618#t50211</link> 
  </item> 
   
  <item> 
   <title>Do you have any other session problems with the mysql handle</title> 
   <description>Do you have any other session problems with the mysql handler? Are you using innodb tables?</description> 
   <pubDate>Thu, 06 Nov 2008 04:57:57 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7618#t50362</link> 
  </item> 
   
  <item> 
   <title>&gt; Do you have any other session problems with the mysql hand</title> 
   <description>&gt; Do you have any other session problems with the mysql handler? Are 

&gt; you using innodb tables?



I use inno_db session_handler table.

I made some test again.



If I set conf[sessionhandler][params][persistent] to true, then I don&#039;t have logout issue, but after login session freezes. Sometime I can browse imap folder and navigate for a while, but finally browser freezes. The error I see into log is this:

&quot;2008-11-06T10:43:00.348816+01:00 vm HORDE[22497]: [horde] Error retrieving session data (id = m4h77vd7f9tl94v9q7ludjbca4): Lock wait timeout exceeded; try restarting transaction [pid 22497 on line 144 of &quot;/var/www/html/horde-webmail-1.2/lib/Horde/SessionHandler/mysql.php&quot;]

2008-11-06T10:43:52.354482+01:00 vm HORDE[22497]: [imp] Error writing session data: Lock wait timeout exceeded; try restarting transaction [pid 22497 on line 185 of &quot;/var/www/html/horde-webmail-1.2/lib/Horde/SessionHandler/mysql.php&quot;]

2008-11-06T10:44:44.361514+01:00 vm HORDE[22497]: [horde] Error retrieving session data (id = m4h77vd7f9tl94v9q7ludjbca4): Lock wait timeout exceeded; try restarting transaction [pid 22497 on line 144 of &quot;/var/www/html/horde-webmail-1.2/lib/Horde/SessionHandler/mysql.php&quot;] &quot;





If I set conf[sessionhandler][params][persistent] to false, I don&#039;t have problem. Horde is fast and work well. But if I try logout, I receive this error: &quot;We cannot verify that this request was really sent by you. It could be a malicious request&quot;. If I go back to previous page I reload horde, so no logout happens.



MySQL is 5.0.32.</description> 
   <pubDate>Thu, 06 Nov 2008 09:52:42 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7618#t50392</link> 
  </item> 
   
  <item> 
   <title>FWIW, I&#039;m experiencing the same issues, same error messages,</title> 
   <description>FWIW, I&#039;m experiencing the same issues, same error messages, happening with the same settings for &#039;persistent&#039;. At one point, I thought the cookie settings in Firefox (keep or remove on exit) had an influence, but I&#039;m not sure anymore.



Software used is Horde 3.3, IMP 4.3, PHP 5.2.6 on Apache 2.2.10, MySQL 5.0.45, all running on Solaris 10.</description> 
   <pubDate>Wed, 12 Nov 2008 10:35:46 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7618#t50681</link> 
  </item> 
   
  <item> 
   <title>Installation infos : horde-webmail-1.2.1 ; php-5.2.6 ; debia</title> 
   <description>Installation infos : horde-webmail-1.2.1 ; php-5.2.6 ; debian etch

DB : mysql-4.1.11 (tables using default engine MyISAM)



I think I meet the same pb. It works perfectly with file-based sessions but it rocks much more for me with Mysql-based sessions.

I&#039;ll add that :



1. If I try to delete a message, it fails too with the same message &quot;We cannot verify that this request was...&quot; without error in logs :

Jan 23 18:43:37 HORDE [debug] [horde] SQL Query by essionHandler_mysql::_read(): query = &quot;SELECT session_data FROM horde_sessionhandler WHERE session_id = &#039;l4itih4bh7aj2qof1l2mr9br37&#039; FOR UPDATE&quot; [pid 17265 on line 139 of &quot;/var/www/horde/lib/Horde/SessionHandler/mysql.php&quot;]

Jan 23 18:43:37 HORDE [debug] [imp] We cannot verify that this request was really sent by you. It could be a malicious request. If you intended to perform this action, you can retry it now. [pid 17265 on line 176 of &quot;/var/www/horde/lib/Horde/Notification.php&quot;]



2. I can&#039;t logout when app=imp (it is shown in the url), but I can logout properly when app=horde.



3. It works if I use a distinct database for horde_sessionhandler (InnoDB and MyISAM too).

For instance the logs when I delete a message :

Jan 23 18:54:31 HORDE [debug] [horde] SQL Query by essionHandler_mysql::_read(): query = &quot;SELECT session_data FROM horde_sessionhandler WHERE session_id = &#039;vej5n9hm0q2lt68tud8q26ajr1&#039; FOR UPDATE&quot; [pid 17423 on line 139 of &quot;/var/www/horde/lib/Horde/SessionHandler/mysql.php&quot;]

Jan 23 18:54:31 HORDE [debug] [horde] Session data unchanged (id = vej5n9hm0q2lt68tud8q26ajr1) [pid 17423 on line 253 of &quot;/var/www/horde/lib/Horde/SessionHandler.php&quot;]



4. Using separate databases allows me to use the persistent connections with the global database but not with the database dedicated for the horde_sessionhandler table (cannot connect anymore with error in logs :

Jan 23 12:29:53 HORDE [error] [horde] Error retrieving session data (id = fh5kqpdsi4gihmodguds5rdl03): Lock wait timeout exceeded; try restarting transaction [pid 15201 on line 144 of &quot;/var/www/horde/lib/Horde/SessionHandler/mysql.php&quot;]



I don&#039;t know what parameters I missed in horde ? php ? mysql ?



Hope it helps.</description> 
   <pubDate>Fri, 23 Jan 2009 18:53:49 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7618#t51908</link> 
  </item> 
   
  <item> 
   <title>Duplicate of Ticket #7931.</title> 
   <description>Duplicate of Ticket #7931.</description> 
   <pubDate>Tue, 30 Jun 2009 18:44:45 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7618#t54753</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
