<?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>last_login preference not stored</title> 
  <pubDate>Fri, 10 Apr 2026 19:06:57 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/2829</link> 
  <atom:link rel="self" type="application/rss+xml" title="last_login preference not stored" href="https://bugs.horde.org/ticket/2829/rss" /> 
  <description>last_login preference not stored</description> 
 
   
   
  <item> 
   <title>Background:

I&#039;m using the Horde-Framwork with imp-Authentif</title> 
   <description>Background:

I&#039;m using the Horde-Framwork with imp-Authentification.

The preferencies backend is LDAP.



When I&#039;m including ingo in imp then the last_login preference is not stored!



Reason:

- The imp-preferencies are loaded (old value for last_login is retrieved)

- Auth.php sets the new value for last_login

- Then the ingo-preferencies are loaded and overwrite the new value for last_login



Resolution:

Store the new &quot;dirty-value&quot; for last_login after setting it:



Code snippet:

     // Set the user&#039;s last_login information.

     $last_login = array(&#039;time&#039; =&gt; time(),

                                   &#039;host&#039; =&gt; @gethostbyaddr($_SERVER[&#039;REMOTE_ADDR&#039;]));

     $GLOBALS[&#039;prefs&#039;]-&gt;setValue(&#039;last_login&#039;, serialize($last_login));

     //NEW: ************************Store it ! *********************

     $GLOBALS[&#039;prefs&#039;]-&gt;store();



</description> 
   <pubDate>Sat, 22 Oct 2005 11:14:37 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/2829#t12717</link> 
  </item> 
   
  <item> 
   <title>last_login is not an IMP preference. You probably upgraded f</title> 
   <description>last_login is not an IMP preference. You probably upgraded from an IMP 3 version and didn&#039;t follow the upgrade instructions.</description> 
   <pubDate>Sat, 22 Oct 2005 11:39:12 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/2829#t12723</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
