Import from http://svn.symfony-project.com/plugins/sfGuardUserSwitcherPlugin/