The Horde_LoginTasks library provides a set of methods for dealing with tasks run upon login to Horde applications. WWW: http://pear.horde.org