<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Typed session data in ASP.NET made easier still</title>
	<atom:link href="http://damieng.com/blog/2007/08/03/typed-session-data-made-easier-still/feed" rel="self" type="application/rss+xml" />
	<link>http://damieng.com/blog/2007/08/03/typed-session-data-made-easier-still?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=typed-session-data-made-easier-still</link>
	<description>A .NET developer in silicon valley</description>
	<lastBuildDate>Fri, 18 May 2012 15:31:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: ashis</title>
		<link>http://damieng.com/blog/2007/08/03/typed-session-data-made-easier-still#comment-8930</link>
		<dc:creator>ashis</dc:creator>
		<pubDate>Sun, 29 Jun 2008 09:01:15 +0000</pubDate>
		<guid isPermaLink="false">http://damieng.com/blog/archive/2007/08/03/typed-session-data-made-easier-still.aspx#comment-8930</guid>
		<description>Thank it is very easy to understand and workable.</description>
		<content:encoded><![CDATA[<p>Thank it is very easy to understand and workable.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Damien Guard</title>
		<link>http://damieng.com/blog/2007/08/03/typed-session-data-made-easier-still#comment-1959</link>
		<dc:creator>Damien Guard</dc:creator>
		<pubDate>Sat, 04 Aug 2007 04:05:49 +0000</pubDate>
		<guid isPermaLink="false">http://damieng.com/blog/archive/2007/08/03/typed-session-data-made-easier-still.aspx#comment-1959</guid>
		<description>There is nothing actually stopping you from creating more than one of these classes as long as each uses a different dictionary key in the get property.&lt;br /&gt;&lt;br /&gt;Defaults can be handled by specifying them in the MySession class.&lt;br /&gt;&lt;br /&gt;The additional overhead of unused variables could well be an issue if you have a large number of sessions that only use a subset of the session variables.&lt;br /&gt;&lt;br /&gt;[)amien</description>
		<content:encoded><![CDATA[<p>There is nothing actually stopping you from creating more than one of these classes as long as each uses a different dictionary key in the get property.</p>
<p>Defaults can be handled by specifying them in the MySession class.</p>
<p>The additional overhead of unused variables could well be an issue if you have a large number of sessions that only use a subset of the session variables.</p>
<p>[)amien</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Philippe Leybaert</title>
		<link>http://damieng.com/blog/2007/08/03/typed-session-data-made-easier-still#comment-1958</link>
		<dc:creator>Philippe Leybaert</dc:creator>
		<pubDate>Sat, 04 Aug 2007 01:28:20 +0000</pubDate>
		<guid isPermaLink="false">http://damieng.com/blog/archive/2007/08/03/typed-session-data-made-easier-still.aspx#comment-1958</guid>
		<description>Your solution is indeed simpler, but it has some important limitations:&lt;br /&gt;&lt;br /&gt;All fields are stored in the session, even if you don&#039;t use them (meaning it is not suitable if you have a lot of session variables).&lt;br /&gt;&lt;br /&gt;There is no way to specify defaults that will be returned when there&#039;s nothing in the session.&lt;br /&gt;&lt;br /&gt;All session variables have to be defined in the same class.&lt;br /&gt;&lt;br /&gt;But, indeed, in certain cases your solution is very nice.&lt;br /&gt;&lt;br /&gt;</description>
		<content:encoded><![CDATA[<p>Your solution is indeed simpler, but it has some important limitations:</p>
<p>All fields are stored in the session, even if you don&#8217;t use them (meaning it is not suitable if you have a lot of session variables).</p>
<p>There is no way to specify defaults that will be returned when there&#8217;s nothing in the session.</p>
<p>All session variables have to be defined in the same class.</p>
<p>But, indeed, in certain cases your solution is very nice.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Damien Guard</title>
		<link>http://damieng.com/blog/2007/08/03/typed-session-data-made-easier-still#comment-1957</link>
		<dc:creator>Damien Guard</dc:creator>
		<pubDate>Fri, 03 Aug 2007 23:22:28 +0000</pubDate>
		<guid isPermaLink="false">http://damieng.com/blog/archive/2007/08/03/typed-session-data-made-easier-still.aspx#comment-1957</guid>
		<description>While it is true you can&#039;t have something like:&lt;br /&gt;&lt;br /&gt; &lt;asp:SessionParameter DefaultValue=&quot;-1&quot; Name=&quot;CustomerID&quot; SessionField=&quot;CustomerID&quot; Type=&quot;Int32&quot; /&gt;&lt;br /&gt;&lt;br /&gt;There is nothing stopping you doing:&lt;br /&gt;&lt;br /&gt;SqlDataSource1.SelectParameters.Add(&quot;CustomerID&quot;, MySession.Current.CustomerID);&lt;br /&gt;&lt;br /&gt;In the code-behind.&lt;br /&gt;&lt;br /&gt;[)amien</description>
		<content:encoded><![CDATA[<p>While it is true you can&#8217;t have something like:</p>
<p> &lt;asp:SessionParameter DefaultValue=&#8221;-1&#8243; Name=&#8221;CustomerID&#8221; SessionField=&#8221;CustomerID&#8221; Type=&#8221;Int32&#8243; /&gt;</p>
<p>There is nothing stopping you doing:</p>
<p>SqlDataSource1.SelectParameters.Add(&#8220;CustomerID&#8221;, MySession.Current.CustomerID);</p>
<p>In the code-behind.</p>
<p>[)amien</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rik Hemsley</title>
		<link>http://damieng.com/blog/2007/08/03/typed-session-data-made-easier-still#comment-1956</link>
		<dc:creator>Rik Hemsley</dc:creator>
		<pubDate>Fri, 03 Aug 2007 23:06:19 +0000</pubDate>
		<guid isPermaLink="false">http://damieng.com/blog/archive/2007/08/03/typed-session-data-made-easier-still.aspx#comment-1956</guid>
		<description>Nice idea, though won&#039;t work with bound controls which use session data as parameters to their data source.&lt;br /&gt;&lt;br /&gt;</description>
		<content:encoded><![CDATA[<p>Nice idea, though won&#8217;t work with bound controls which use session data as parameters to their data source.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

