<?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: PHP Session Lifetime: An Adventure</title>
	<atom:link href="http://blog.centresource.com/2006/05/23/php-session-lifetime-an-adventure/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.centresource.com/2006/05/23/php-session-lifetime-an-adventure/</link>
	<description>Web Development &#124; Nashville, TN</description>
	<lastBuildDate>Tue, 16 Mar 2010 14:30:10 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: John</title>
		<link>http://blog.centresource.com/2006/05/23/php-session-lifetime-an-adventure/comment-page-1/#comment-229310</link>
		<dc:creator>John</dc:creator>
		<pubDate>Fri, 19 Feb 2010 20:24:46 +0000</pubDate>
		<guid isPermaLink="false">http://blog.centresource.com/2006/05/23/php-session-lifetime-an-adventure/#comment-229310</guid>
		<description>that last post stripped out the actual meant of the solution, here it is again...hopefully:

This solved all my problems on Ubuntu 9.1 - bottom line, you need to override PHP&#039;s session.gc_maxlifetime value:

include the following code in /etc/phpmyadmin/config.inc.php

$cfg[&#039;LoginCookieValidity&#039;] = 60*60*24*7*52;
ini_set(&#039;session.gc_maxlifetime&#039;, $cfg[&#039;LoginCookieValidity&#039;]);</description>
		<content:encoded><![CDATA[<p>that last post stripped out the actual meant of the solution, here it is again&#8230;hopefully:</p>
<p>This solved all my problems on Ubuntu 9.1 &#8211; bottom line, you need to override PHP&#8217;s session.gc_maxlifetime value:</p>
<p>include the following code in /etc/phpmyadmin/config.inc.php</p>
<p>$cfg['LoginCookieValidity'] = 60*60*24*7*52;<br />
ini_set(&#8217;session.gc_maxlifetime&#8217;, $cfg['LoginCookieValidity']);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://blog.centresource.com/2006/05/23/php-session-lifetime-an-adventure/comment-page-1/#comment-229309</link>
		<dc:creator>John</dc:creator>
		<pubDate>Fri, 19 Feb 2010 20:23:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog.centresource.com/2006/05/23/php-session-lifetime-an-adventure/#comment-229309</guid>
		<description>This solved all my problems on Ubuntu 9.1 - bottom line, you need to override PHP&#039;s session.gc_maxlifetime value:

/etc/phpmyadmin/config.inc.php

</description>
		<content:encoded><![CDATA[<p>This solved all my problems on Ubuntu 9.1 &#8211; bottom line, you need to override PHP&#8217;s session.gc_maxlifetime value:</p>
<p>/etc/phpmyadmin/config.inc.php</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alessandro Nunes</title>
		<link>http://blog.centresource.com/2006/05/23/php-session-lifetime-an-adventure/comment-page-1/#comment-228350</link>
		<dc:creator>Alessandro Nunes</dc:creator>
		<pubDate>Tue, 26 May 2009 17:15:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.centresource.com/2006/05/23/php-session-lifetime-an-adventure/#comment-228350</guid>
		<description>We had this problem in a dedicated server. So, no other users sharing or modifing gc_ variables. We use a single application, a CMS developed by us. But... we had a phpMyAdmin, intalled by the host company. We had no access to php config of phpMyAdmin so we ask the Host to verify: phpMyAdmin had only 24 minutes from session. They chaged this config, and the problem is solved. Thanks for the article!</description>
		<content:encoded><![CDATA[<p>We had this problem in a dedicated server. So, no other users sharing or modifing gc_ variables. We use a single application, a CMS developed by us. But&#8230; we had a phpMyAdmin, intalled by the host company. We had no access to php config of phpMyAdmin so we ask the Host to verify: phpMyAdmin had only 24 minutes from session. They chaged this config, and the problem is solved. Thanks for the article!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom Taylor</title>
		<link>http://blog.centresource.com/2006/05/23/php-session-lifetime-an-adventure/comment-page-1/#comment-206515</link>
		<dc:creator>Tom Taylor</dc:creator>
		<pubDate>Fri, 21 Dec 2007 20:54:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.centresource.com/2006/05/23/php-session-lifetime-an-adventure/#comment-206515</guid>
		<description>What an excellent article. 
I loved the way it was written, the approach and the detailed process. 

Bookmarked !</description>
		<content:encoded><![CDATA[<p>What an excellent article.<br />
I loved the way it was written, the approach and the detailed process. </p>
<p>Bookmarked !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: johnd</title>
		<link>http://blog.centresource.com/2006/05/23/php-session-lifetime-an-adventure/comment-page-1/#comment-200824</link>
		<dc:creator>johnd</dc:creator>
		<pubDate>Thu, 13 Dec 2007 14:58:24 +0000</pubDate>
		<guid isPermaLink="false">http://blog.centresource.com/2006/05/23/php-session-lifetime-an-adventure/#comment-200824</guid>
		<description>Great information there thanks for that
Our session.gc_maxlifetime is set to 1440 (php default) which i believe is 24 mins.
Upon testing this i cant understand why after this time the session is still open
im guessing this is due to the gc again as
session.gc_probability = 1
session.gc_divisor = 100
so does that mean there is 1/100 chances that it will check for expired sessions
and remove them
its all very strange :0)</description>
		<content:encoded><![CDATA[<p>Great information there thanks for that<br />
Our session.gc_maxlifetime is set to 1440 (php default) which i believe is 24 mins.<br />
Upon testing this i cant understand why after this time the session is still open<br />
im guessing this is due to the gc again as<br />
session.gc_probability = 1<br />
session.gc_divisor = 100<br />
so does that mean there is 1/100 chances that it will check for expired sessions<br />
and remove them<br />
its all very strange :0)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kristjan Adojaan</title>
		<link>http://blog.centresource.com/2006/05/23/php-session-lifetime-an-adventure/comment-page-1/#comment-156752</link>
		<dc:creator>Kristjan Adojaan</dc:creator>
		<pubDate>Fri, 26 Oct 2007 07:54:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.centresource.com/2006/05/23/php-session-lifetime-an-adventure/#comment-156752</guid>
		<description>Thank you!! We have had exactly the same problems, but didn&#039;t found an answer before read your &lt;i&gt;Adventure&lt;/i&gt;. Sounds very logical!!! Now we try to implement.</description>
		<content:encoded><![CDATA[<p>Thank you!! We have had exactly the same problems, but didn&#8217;t found an answer before read your <i>Adventure</i>. Sounds very logical!!! Now we try to implement.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Boban Jovanoski</title>
		<link>http://blog.centresource.com/2006/05/23/php-session-lifetime-an-adventure/comment-page-1/#comment-144781</link>
		<dc:creator>Boban Jovanoski</dc:creator>
		<pubDate>Fri, 28 Sep 2007 23:46:40 +0000</pubDate>
		<guid isPermaLink="false">http://blog.centresource.com/2006/05/23/php-session-lifetime-an-adventure/#comment-144781</guid>
		<description>I&#039;ve found this type of solution for the same problem...but it only works fine on Mozilla....I&#039;ve set the max session time lets say 20 seconds..used alternate session_path /tmp/something..permissions for something chmod a+rw......the user logs is and after 20 secs...has to login again (if he/she stays still on the web page) and it works fine on MOZILLA...but when i use Internet Explorer......the cookie doesent expire....i c the expiration time ends for 1 more day.....confusing$$!!!#$   sry for my bad english...but if some1 knows the solution for this thing pls e-mail me at bobanjovanoski@yahoo.com tnx in advance.
P.S. Using sles9 for apache...and remote suse 10 for informix database....it all works sweett on mozilla...pls help me how to solve the session expire time on internet explorer too.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve found this type of solution for the same problem&#8230;but it only works fine on Mozilla&#8230;.I&#8217;ve set the max session time lets say 20 seconds..used alternate session_path /tmp/something..permissions for something chmod a+rw&#8230;&#8230;the user logs is and after 20 secs&#8230;has to login again (if he/she stays still on the web page) and it works fine on MOZILLA&#8230;but when i use Internet Explorer&#8230;&#8230;the cookie doesent expire&#8230;.i c the expiration time ends for 1 more day&#8230;..confusing$$!!!#$   sry for my bad english&#8230;but if some1 knows the solution for this thing pls e-mail me at <a  href="mailto:bobanjovanoski@yahoo.com">bobanjovanoski@yahoo.com</a> tnx in advance.<br />
P.S. Using sles9 for apache&#8230;and remote suse 10 for informix database&#8230;.it all works sweett on mozilla&#8230;pls help me how to solve the session expire time on internet explorer too.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Learn PHP</title>
		<link>http://blog.centresource.com/2006/05/23/php-session-lifetime-an-adventure/comment-page-1/#comment-141267</link>
		<dc:creator>Learn PHP</dc:creator>
		<pubDate>Sat, 22 Sep 2007 02:06:38 +0000</pubDate>
		<guid isPermaLink="false">http://blog.centresource.com/2006/05/23/php-session-lifetime-an-adventure/#comment-141267</guid>
		<description>For security purpose i also to save sessions in database rather than using flat files. Thou you would delete the file when you delete your sessions, but the file will remains readable by any script or human.

You could also use memcache lib for storing sessions and cookies.</description>
		<content:encoded><![CDATA[<p>For security purpose i also to save sessions in database rather than using flat files. Thou you would delete the file when you delete your sessions, but the file will remains readable by any script or human.</p>
<p>You could also use memcache lib for storing sessions and cookies.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Casey</title>
		<link>http://blog.centresource.com/2006/05/23/php-session-lifetime-an-adventure/comment-page-1/#comment-139361</link>
		<dc:creator>Casey</dc:creator>
		<pubDate>Mon, 17 Sep 2007 17:09:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.centresource.com/2006/05/23/php-session-lifetime-an-adventure/#comment-139361</guid>
		<description>I thought this would fix my problem on our server.  I&#039;ve separated my problem applications into their own folders under php\tmp, and now the session files are being written there, however, two of our sites are still timing out users after only a few minutes.  Our gc.maxlifetime is set to 5400 (90 minutes), but the folder change is not working.  Anybody have any other ideas here?  I&#039;ve gone through all of my code and raised the maxlifetime to 5400 anywhere I could to know avail.  It just seems like garbage collection is finding my files no matter where I put them.  Please help!</description>
		<content:encoded><![CDATA[<p>I thought this would fix my problem on our server.  I&#8217;ve separated my problem applications into their own folders under php\tmp, and now the session files are being written there, however, two of our sites are still timing out users after only a few minutes.  Our gc.maxlifetime is set to 5400 (90 minutes), but the folder change is not working.  Anybody have any other ideas here?  I&#8217;ve gone through all of my code and raised the maxlifetime to 5400 anywhere I could to know avail.  It just seems like garbage collection is finding my files no matter where I put them.  Please help!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sheldon</title>
		<link>http://blog.centresource.com/2006/05/23/php-session-lifetime-an-adventure/comment-page-1/#comment-127996</link>
		<dc:creator>Sheldon</dc:creator>
		<pubDate>Wed, 22 Aug 2007 17:01:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.centresource.com/2006/05/23/php-session-lifetime-an-adventure/#comment-127996</guid>
		<description>How can I set a finite timeout on a PHP session? I want my users to be logged in for 60 minutes regardless of activity/inactivity. I&#039;m toying around with maxlifetime etc, but every time a new page is visited, the session renews itself, thus never expiring. I am using server sessions only, with a defined save_path.

I&#039;m presuming it&#039;s done using some kind of date comparison function.

Many thanks.</description>
		<content:encoded><![CDATA[<p>How can I set a finite timeout on a PHP session? I want my users to be logged in for 60 minutes regardless of activity/inactivity. I&#8217;m toying around with maxlifetime etc, but every time a new page is visited, the session renews itself, thus never expiring. I am using server sessions only, with a defined save_path.</p>
<p>I&#8217;m presuming it&#8217;s done using some kind of date comparison function.</p>
<p>Many thanks.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
