Module checks that anonymous user exists, otherwise creates it. Inspired by blog post Missing Anonymous User by Greg Harvey and my own experience.
Background
By default in users table there is anonymous user, which could be identified by id equal to "0". In some cases id of this user could be lost, that breaks functioning of anonymous user in Drupal. Probably it happens after making dump or restoring database. This module needs to be run in cron. It does very important task: insures that anonymous user exists with id equal to "0".
What you get
- Use $_SESSION while anonymous is browsing your site.
- Allows anonymous to create new content.
Modules where you need it
For developers
If you need to create anonymous user manually you could call 'create' hook: module_invoke('anonymous_user', 'create');
Acknowledgments
This project is sponsored by Trellon.
Project Information
- Maintenance status: Actively maintained
- Development status: Maintenance fixes only
- Module categories: Content Access Control, Developer, User Access & Authentication, Utility
- Reported installs: 174 sites currently report using this module. View usage statistics.
- Last modified: March 22, 2011