<?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>Cameron Priem &#187; classic asp session timeout</title>
	<atom:link href="http://cameronpriem.com/tag/classic-asp-session-timeout/feed/" rel="self" type="application/rss+xml" />
	<link>http://cameronpriem.com</link>
	<description>Professional Software Development</description>
	<lastBuildDate>Tue, 11 Aug 2009 12:12:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Classic ASP session timeout / loss</title>
		<link>http://cameronpriem.com/2008/10/classic-asp-session-timeout-loss/</link>
		<comments>http://cameronpriem.com/2008/10/classic-asp-session-timeout-loss/#comments</comments>
		<pubDate>Wed, 08 Oct 2008 13:30:25 +0000</pubDate>
		<dc:creator>Campo</dc:creator>
				<category><![CDATA[ASP]]></category>
		<category><![CDATA[Coding]]></category>
		<category><![CDATA[Helpful Tips]]></category>
		<category><![CDATA[classic asp session timeout]]></category>

		<guid isPermaLink="false">http://cameronpriem.com/?p=10</guid>
		<description><![CDATA[Session timeout&#8230; this is the bain of my existence in our classic ASP site.  We set it in global.asa, we set it in IIS 6 (properties &#62; home directory &#62; configuration &#62; options tab &#8220;enable session state&#8221;)  we setup the &#8230; <a href="http://cameronpriem.com/2008/10/classic-asp-session-timeout-loss/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Session timeout&#8230; this is the bain of my existence in our classic ASP site.  We set it in global.asa, we set it in IIS 6 (properties &gt; home directory &gt; configuration &gt; options tab &#8220;enable session state&#8221;)  we setup the application pool to only recycle when we want it to.  But still every now and again we have problems.  Maybe the application pool is reaching its memory limit and recycling anyways?</p>
<p>One problem on a clients server took me ages to figure out.  We had initially setup IIS 6 from our stock standard documented configuration, no surprises, no bells &amp; whistles, just stock standard.  A few months later we started receiving notices that users were being &#8220;kicked off&#8221; the system and directed to the log in page.  Session time out seemed to be the issue here.</p>
<p>So I checked the usual suspects that I wrote above, and these were all set fine.  I could not actually reproduce this issue when using my local broswer on the site.  After investigating the user&#8217;s computer I thought it may be something blocking the asp cookie, or removing it.  But this was a dead end.  I eventually gave up and focussed my efforts back on the server.  But i did end up recording my longest showmypc.com session of 2hours +, hi-5&#8242;s all round!  The problem ended up being with the application pool, the sys admins had set the multiple process option in the application pool.</p>
<p><strong>DON&#8217;T setup classic ASP sites to use a web garden ( &gt; 1 worker processes in the application pool). </strong> If you do this, more than one instance of w3wp.exe is started for a given Application Pool. This means two HTTP requests for a given user using the same application within that application pool may be directed to any of the w3wp.exe instances running that application and session data is not shared between w3wp.exe instances because they are separate processes. In the sys admin&#8217;s defence they were trying to improve the performance and scalability of the site.</p>
<p>The purpose for this post is to help point other people in the right direction to set what we have setup, and also to get feedback from other developers out there. Got a suggestion for me? Let me know by leaving a comment!</p>
]]></content:encoded>
			<wfw:commentRss>http://cameronpriem.com/2008/10/classic-asp-session-timeout-loss/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

