<?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: Shrink Your Drupal Sessions Table</title>
	<atom:link href="http://success.grownupgeek.com/index.php/2008/08/14/drupal-sessions-table/feed/" rel="self" type="application/rss+xml" />
	<link>http://success.grownupgeek.com/index.php/2008/08/14/drupal-sessions-table/</link>
	<description>Do it right the first time, stoopit!</description>
	<lastBuildDate>Thu, 09 Feb 2012 22:58:06 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: krausdog</title>
		<link>http://success.grownupgeek.com/index.php/2008/08/14/drupal-sessions-table/#comment-3098</link>
		<dc:creator>krausdog</dc:creator>
		<pubDate>Wed, 06 Apr 2011 19:31:12 +0000</pubDate>
		<guid isPermaLink="false">http://success.grownupgeek.com/index.php/2008/08/14/drupal-sessions-table/#comment-3098</guid>
		<description>Above you write:
ini_set(&#039;session.cache_expire&#039;, 2700);		// this is in minutes and so = just under 2 days
ini_set(&#039;session.gc_maxlifetime&#039;, 2700); 	// this is in seconds and so = 45 mins
And then you write: sessions are only saved for 45 minutes. Thought readers should realize the differences between &#039;expire&#039; and &#039;gc_maxlifetime&#039;</description>
		<content:encoded><![CDATA[<p>Above you write:<br />
ini_set(&#8216;session.cache_expire&#8217;, 2700);		// this is in minutes and so = just under 2 days<br />
ini_set(&#8216;session.gc_maxlifetime&#8217;, 2700); 	// this is in seconds and so = 45 mins<br />
And then you write: sessions are only saved for 45 minutes. Thought readers should realize the differences between &#8216;expire&#8217; and &#8216;gc_maxlifetime&#8217;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike DeWolfe</title>
		<link>http://success.grownupgeek.com/index.php/2008/08/14/drupal-sessions-table/#comment-2211</link>
		<dc:creator>Mike DeWolfe</dc:creator>
		<pubDate>Mon, 16 Feb 2009 19:15:29 +0000</pubDate>
		<guid isPermaLink="false">http://success.grownupgeek.com/index.php/2008/08/14/drupal-sessions-table/#comment-2211</guid>
		<description>[quote comment=&quot;2182&quot;]Hello Randy,
Great tips. Our session table is also a runaway. Heavy hitter like the Google spiders do the most damage. The two of them are responsible for over 100,000 records. With each hit, they spawn a new session and rack them up with lightning speed.

Great site, BTW, Randy.

- Mike[/quote]

After some more digging, we found our core problem: Debian/Ubuntu doesn&#039;t have garbage collection set-up by default in the apt-get version of PHP5. We changed it (see below) and voila-- session management.

&lt;code&gt;
session.gc_probability = 1
session.gc_divisor     = 100
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Mike DeWolfe said:</p>
<blockquote cite="http://success.grownupgeek.com/index.php/2008/08/14/drupal-sessions-table/#comment-2182"><p>
Hello Randy,<br />
Great tips. Our session table is also a runaway. Heavy hitter like the Google spiders do the most damage. The two of them are responsible for over 100,000 records. With each hit, they spawn a new session and rack them up with lightning speed.</p>
<p>Great site, BTW, Randy.</p>
<p>- Mike</p>
</blockquote>
<p>After some more digging, we found our core problem: Debian/Ubuntu doesn&#8217;t have garbage collection set-up by default in the apt-get version of PHP5. We changed it (see below) and voila&#8211; session management.</p>
<p><code><br />
session.gc_probability = 1<br />
session.gc_divisor     = 100<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike DeWolfe</title>
		<link>http://success.grownupgeek.com/index.php/2008/08/14/drupal-sessions-table/#comment-2182</link>
		<dc:creator>Mike DeWolfe</dc:creator>
		<pubDate>Thu, 29 Jan 2009 01:06:50 +0000</pubDate>
		<guid isPermaLink="false">http://success.grownupgeek.com/index.php/2008/08/14/drupal-sessions-table/#comment-2182</guid>
		<description>Hello Randy,
Great tips. Our session table is also a runaway. Heavy hitter like the Google spiders do the most damage. The two of them are responsible for over 100,000 records. With each hit, they spawn a new session and rack them up with lightning speed. 

Great site, BTW, Randy.

- Mike</description>
		<content:encoded><![CDATA[<p>Hello Randy,<br />
Great tips. Our session table is also a runaway. Heavy hitter like the Google spiders do the most damage. The two of them are responsible for over 100,000 records. With each hit, they spawn a new session and rack them up with lightning speed. </p>
<p>Great site, BTW, Randy.</p>
<p>- Mike</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rand B. Wilson</title>
		<link>http://success.grownupgeek.com/index.php/2008/08/14/drupal-sessions-table/#comment-2083</link>
		<dc:creator>Rand B. Wilson</dc:creator>
		<pubDate>Sat, 22 Nov 2008 21:22:43 +0000</pubDate>
		<guid isPermaLink="false">http://success.grownupgeek.com/index.php/2008/08/14/drupal-sessions-table/#comment-2083</guid>
		<description>[quote comment=&quot;2072&quot;]Hi,

I tried your solution, but after a while (maybe two days), session table grows again...

No it&#039;s more than 9000 rows.
[/quote]

That&#039;s strange Alessandro; are you sure you made the session expire-time short enough?
The changes above worked for me - i&#039;m wondering if maybe your settings are being overridden somwhere like in your HTACCESS file or elswhere.</description>
		<content:encoded><![CDATA[<p>Alessandro Bonelli said:</p>
<blockquote cite="http://success.grownupgeek.com/index.php/2008/08/14/drupal-sessions-table/#comment-2072"><p>
Hi,</p>
<p>I tried your solution, but after a while (maybe two days), session table grows again&#8230;</p>
<p>No it&#8217;s more than 9000 rows.
</p>
</blockquote>
<p>That&#8217;s strange Alessandro; are you sure you made the session expire-time short enough?<br />
The changes above worked for me &#8211; i&#8217;m wondering if maybe your settings are being overridden somwhere like in your HTACCESS file or elswhere.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

