<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Symfony Session Timeout Annoyance&#8230;</title>
	<atom:link href="http://blog.mcnicholl.com/2008/04/25/symfony-session-timeout-annoyance/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.mcnicholl.com/2008/04/25/symfony-session-timeout-annoyance/</link>
	<description>Technology Holdings Company</description>
	<pubDate>Tue, 06 Jan 2009 08:35:34 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: mcnicholl</title>
		<link>http://blog.mcnicholl.com/2008/04/25/symfony-session-timeout-annoyance/#comment-2603</link>
		<dc:creator>mcnicholl</dc:creator>
		<pubDate>Mon, 02 Jun 2008 09:31:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mcnicholl.com/2008/04/25/symfony-session-timeout-annoyance/#comment-2603</guid>
		<description>Hi toolagio!

Thanks for the code. 
I think I would expand the code slightly to test if the namespace exists (if the user is logged in) and if not - then create it by default so that all the rest of my classes don't need to think about creating the namespace if/when they need to store something there.

But its all semantics :-)</description>
		<content:encoded><![CDATA[<p>Hi toolagio!</p>
<p>Thanks for the code.<br />
I think I would expand the code slightly to test if the namespace exists (if the user is logged in) and if not - then create it by default so that all the rest of my classes don&#8217;t need to think about creating the namespace if/when they need to store something there.</p>
<p>But its all semantics <img src='http://blog.mcnicholl.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mcnicholl</title>
		<link>http://blog.mcnicholl.com/2008/04/25/symfony-session-timeout-annoyance/#comment-2602</link>
		<dc:creator>mcnicholl</dc:creator>
		<pubDate>Mon, 02 Jun 2008 09:28:50 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mcnicholl.com/2008/04/25/symfony-session-timeout-annoyance/#comment-2602</guid>
		<description>Hi thichquay,

Terribly sorry for the tardy reply - but here goes :

You can find the myUser class in your application directory :

your_project/apps/your_app/lib

The file is called myUser.class.php.

Hope this helps.</description>
		<content:encoded><![CDATA[<p>Hi thichquay,</p>
<p>Terribly sorry for the tardy reply - but here goes :</p>
<p>You can find the myUser class in your application directory :</p>
<p>your_project/apps/your_app/lib</p>
<p>The file is called myUser.class.php.</p>
<p>Hope this helps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: toolagio</title>
		<link>http://blog.mcnicholl.com/2008/04/25/symfony-session-timeout-annoyance/#comment-2563</link>
		<dc:creator>toolagio</dc:creator>
		<pubDate>Mon, 26 May 2008 14:25:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mcnicholl.com/2008/04/25/symfony-session-timeout-annoyance/#comment-2563</guid>
		<description>halfer is correct.  The best way to do this would be to keep all items you want to expire (upon logout) in one namespace... for example loggedInUser.  See below

  public function initialize($context, $parameters = array()) {
    parent::initialize($context, $parameters = array());
    if($this-&#62;isTimedOut()) {
      $this-&#62;getAttributeHolder()-&#62;removeNamespace('loggedInUser');
    }
  }</description>
		<content:encoded><![CDATA[<p>halfer is correct.  The best way to do this would be to keep all items you want to expire (upon logout) in one namespace&#8230; for example loggedInUser.  See below</p>
<p>  public function initialize($context, $parameters = array()) {<br />
    parent::initialize($context, $parameters = array());<br />
    if($this-&gt;isTimedOut()) {<br />
      $this-&gt;getAttributeHolder()-&gt;removeNamespace(&#8217;loggedInUser&#8217;);<br />
    }<br />
  }</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: thichquay</title>
		<link>http://blog.mcnicholl.com/2008/04/25/symfony-session-timeout-annoyance/#comment-2555</link>
		<dc:creator>thichquay</dc:creator>
		<pubDate>Sun, 25 May 2008 15:58:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mcnicholl.com/2008/04/25/symfony-session-timeout-annoyance/#comment-2555</guid>
		<description>hello,
how can I refernce the new myUser class instead of the original sfBasicSecurityUser?  Also, where should I place this class at?  Is it supposed to be under the same sfBasciSecurityUser folder?

Thanks

newbiew</description>
		<content:encoded><![CDATA[<p>hello,<br />
how can I refernce the new myUser class instead of the original sfBasicSecurityUser?  Also, where should I place this class at?  Is it supposed to be under the same sfBasciSecurityUser folder?</p>
<p>Thanks</p>
<p>newbiew</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mcnicholl</title>
		<link>http://blog.mcnicholl.com/2008/04/25/symfony-session-timeout-annoyance/#comment-2442</link>
		<dc:creator>mcnicholl</dc:creator>
		<pubDate>Wed, 30 Apr 2008 18:01:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mcnicholl.com/2008/04/25/symfony-session-timeout-annoyance/#comment-2442</guid>
		<description>Hi Halfer,

I see what you mean.

Handling the 'logout' action is simple enough. The issue described here references the timeout side of ending an authenticated session - which could not be properly handled in an action.

But, yeah - application specific namespaces would be a good idea as it bundles all attributes in one space.</description>
		<content:encoded><![CDATA[<p>Hi Halfer,</p>
<p>I see what you mean.</p>
<p>Handling the &#8216;logout&#8217; action is simple enough. The issue described here references the timeout side of ending an authenticated session - which could not be properly handled in an action.</p>
<p>But, yeah - application specific namespaces would be a good idea as it bundles all attributes in one space.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: halfer</title>
		<link>http://blog.mcnicholl.com/2008/04/25/symfony-session-timeout-annoyance/#comment-2439</link>
		<dc:creator>halfer</dc:creator>
		<pubDate>Wed, 30 Apr 2008 10:59:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mcnicholl.com/2008/04/25/symfony-session-timeout-annoyance/#comment-2439</guid>
		<description>One thing you can do is to store all session attributes in an application-specific namespace. Then upon logging out, remove the namespace, rather than specific attributes, so that it clears everything. This means that as new attributes are introduced into the system, you don't have to remember to clear them up as well.</description>
		<content:encoded><![CDATA[<p>One thing you can do is to store all session attributes in an application-specific namespace. Then upon logging out, remove the namespace, rather than specific attributes, so that it clears everything. This means that as new attributes are introduced into the system, you don&#8217;t have to remember to clear them up as well.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mcnicholl</title>
		<link>http://blog.mcnicholl.com/2008/04/25/symfony-session-timeout-annoyance/#comment-2432</link>
		<dc:creator>mcnicholl</dc:creator>
		<pubDate>Sun, 27 Apr 2008 18:10:19 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mcnicholl.com/2008/04/25/symfony-session-timeout-annoyance/#comment-2432</guid>
		<description>Hi Fork,

Good idea. Plugins for Symfony are the future...</description>
		<content:encoded><![CDATA[<p>Hi Fork,</p>
<p>Good idea. Plugins for Symfony are the future&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: forkmantis</title>
		<link>http://blog.mcnicholl.com/2008/04/25/symfony-session-timeout-annoyance/#comment-2428</link>
		<dc:creator>forkmantis</dc:creator>
		<pubDate>Sat, 26 Apr 2008 05:04:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mcnicholl.com/2008/04/25/symfony-session-timeout-annoyance/#comment-2428</guid>
		<description>If this is something you'll be using in multiple projects, I'd recommend making a plugin.  In our projects, I'm using sfGuardPlugin, and my own additional plugin that extends sfGuardPlugin.</description>
		<content:encoded><![CDATA[<p>If this is something you&#8217;ll be using in multiple projects, I&#8217;d recommend making a plugin.  In our projects, I&#8217;m using sfGuardPlugin, and my own additional plugin that extends sfGuardPlugin.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
