Symfony session variable clear

We’re starting a new Symfony project soon at work (new job since my last post, oh so long ago).  Anyway, I’m pretty excited to start using the framework.

And, as a random little sidenote, here’s a link to a blog post I stumbled upon about clearing session variables in Symfony:

$this->getUser()->getParameterHolder()->clear();
$this->getUser()->getAttributeHolder()->clear();

http://eatmymonkeydust.com/2008/08/symfony-security-sessions-not-cleared-when-logging-out/

Digg this     Create a del.icio.us Bookmark     Add to Newsvine

No Responses to “Symfony session variable clear”

No comments yet

Leave a Reply