6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
10/20/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#2829] last_login preference not stored
*
Your Email Address
*
Spam protection
Enter the letters below:
.___.__ . ..__ . . [__ [__)| || \|__| [___| \|__||__/| |
Comment
> Background: > > I'm using the Horde-Framwork with imp-Authentification. > > The preferencies backend is LDAP. > > > > When I'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 "dirty-value" for last_login after setting it: > > > > Code snippet: > > // Set the user's last_login information. > > $last_login = array('time' => time(), > > 'host' => > @gethostbyaddr($_SERVER['REMOTE_ADDR'])); > > $GLOBALS['prefs']->setValue('last_login', serialize($last_login)); > > //NEW: ************************Store it ! ********************* > > $GLOBALS['prefs']->store(); > > > >
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers