<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>PeterKellner.net &#187; Security</title>
	<atom:link href="http://peterkellner.net/category/security/feed/" rel="self" type="application/rss+xml" />
	<link>http://peterkellner.net</link>
	<description>Microsoft Focused, JavaScript,HTML5 (ExtJS, SenchaTouch &#38; Windows 8 Metro)</description>
	<lastBuildDate>Fri, 11 May 2012 16:43:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Not Using Session in ASP.NET means Session Affinity/Sticky Sessions Not Necessary in Web Farms!</title>
		<link>http://peterkellner.net/2009/04/03/aspnet-session-provider-stefan-schackow-thread-affinity/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=aspnet-session-provider-stefan-schackow-thread-affinity</link>
		<comments>http://peterkellner.net/2009/04/03/aspnet-session-provider-stefan-schackow-thread-affinity/#comments</comments>
		<pubDate>Sat, 04 Apr 2009 04:51:53 +0000</pubDate>
		<dc:creator>Peter Kellner</dc:creator>
				<category><![CDATA[ASP.NET 3.5]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[How Things Work]]></category>
		<category><![CDATA[IIS7]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[WebFarm]]></category>

		<guid isPermaLink="false">http://peterkellner.net/2009/04/03/aspnet-session-provider-stefan-schackow-thread-affinity/</guid>
		<description><![CDATA[So, I’ve always incorrectly thought that somehow, the cookie stored in asp.net was somehow tied to the Session provider in asp.net.&#160; Turns out I’m wrong.&#160; This came up because I was discussing with another engineer whether we need to bother with a Session provider since we do not use Session in our web application.&#160; That [...]]]></description>
			<content:encoded><![CDATA[<p>So, I’ve always incorrectly thought that somehow, the cookie stored in <a href="http://www.asp.net/">asp.net</a> was somehow tied to the Session provider in asp.net.&#160; Turns out I’m wrong.&#160; This came up because I was discussing with another engineer whether we need to bother with a Session provider since we do not use Session in our <a href="http://en.wikipedia.org/wiki/Server_farm">web application</a>.&#160; That is, we don’t ever store information by saying something like: </p>
<p>Session[“MyKey1”] = “MyShoppingCartInfo1”;</p>
<p>My assumption was that somehow, the Cookie planted on the client’s browser was in lock step with the IIS server through Session and that even if we did not store Session data, we still had to hook up a Session Provider.&#160; Wrong I am.</p>
<p> <span id="more-283"></span>
<p>I emailed <a href="http://www.amazon.com/Professional-ASP-NET-Security-Membership-Management/dp/0764596985">Stefan Schackow</a>, a Microsoft employee who is an expert on all things secure around <a href="http://www.iis.net/">IIS</a> and ASP.NET and he assured me of this fact.&#160; In fact, I’m going to quote (with his permission) what he told me.</p>
<blockquote><p><em>If your app doesn’t use Session anywhere then it doesn’t matter.&#160; We don’t internally rely on session state for anything.&#160; You could literally pull the SessionStateModule out of the configured httpModules list and it would have no effect.</em></p>
<p><em>This is a point of confusion for developers because the term “session” is overloaded.&#160; For some of the EJB platforms “session” implies things like authenticated sessions.&#160; But for </em><a href="http://ASP.NET"><em>ASP.NET</em></a><em> session is just a bag of data – if your application doesn’t use it, you can completely ignore the feature.</em></p>
</blockquote>
<p>I hope this helps you if you were misguided like I was.</p>
]]></content:encoded>
			<wfw:commentRss>http://peterkellner.net/2009/04/03/aspnet-session-provider-stefan-schackow-thread-affinity/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced (User agent is rejected)
Database Caching 32/35 queries in 0.008 seconds using disk: basic
Content Delivery Network via Amazon Web Services: S3: PetersBlogCDN.s3.amazonaws.com

Served from: peterkellner.net @ 2012-05-22 11:02:21 -->
