Persistence of Memory
Description
Persistence of Memory is a Habari plugin that allows you to bypass the login screen. It stores a cookie on your computer that lasts for one month. As long as that cookie is present, you will be automatically logged in.
Configuration
None!
Usage
Simply activate the plugin. Log out and log back in to ensure that the cookie is correctly sent to your browser.
Screenshots
None!
But you can read all about the Salvador Dalí painting Persistence of Memory at Wikipedia!
Notes
- The cookie is named after a hash of your site's GUID, and contains a hash of your username, user ID, and the time at which the cookie will expire. The server keeps a copy of this hash value, along with an unencrypted copy of the expiration time. When you log in, it checks whether the hash is known, and then compares the hash to the computed hash of the same information based on the username associated with that record. If the two hashes match, the plugin logs you in automatically.
- At the end of one month, you will be prompted to log back in again.
- At this time, Habari does not invoke plugins for password changes. If you change your password, the cookie will not be expired, and will continue to log you in.
Download
persistence-1.8.zip
Revision history
- 1.8: update to properly deal with changes to the User object in current revisions of Habari.
- 1.7: execute on
action_init rather than action_plugins_loaded. This allows Habari to set up the session, and prevents this plugin from flooding your logs with every admin pageload. - 1.6: include a checkbox on the login form to control whether to set the persistence cookie. Thanks, eternal243!
- 1.5: use a hashed value based on the site's GUID for the cookie name, to better protect against cookie collisions in multiple Habari installations on the same domain. Thanks BigJibby for the suggestion
- 1.4: correctly set cookie path, making plugin actually work as described. Thanks BlakeJ for the patch!
- 1.3: unreleased debug version
- 1.2: updated to store data in userinfo records.
- 1.1: updated to delete cookie when user logs out. Changed the data storage mechanism to reveal less data in the cookie stored on the user's PC.
- 1.0: Initial release