sfUserOnlinePlugin - 1.0.2

User status plugin

You are currently browsing
the website for symfony 1

Visit the Symfony2 website

« Back to the Plugins Home


Forgot your password?
Create an account



advanced search
Information Readme Releases Changelog Contribute
Show source


This plugin allow you to manage user status by changing user class in your factories.yml to sfUserOnline. This class extends sfUser class and you don't drop any user logic.


Run from command line

php symfony plugin:install sfUserOnlinePlugin

Add or select sfUser method to get user unique ID. It can be sfUser::getUserName or sfUser::getId and set it in factories.yml

Set in factories.yml

 class: sfUserOnline
   user_unique_method:  "getId" # sfUser method to get unique user ID
   memcache_host:       ""
   memcache_port:       11211
   status_lifetime:     600
   memcache_prefix:     "ustatus_"
   online_status_class: onlineMemcacheStorage

Retrieve user status

To get self status


To set self status


To get other user status