<?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: Storing your PHP sessions using memcached</title>
	<atom:link href="http://www.dotdeb.org/2008/08/25/storing-your-php-sessions-using-memcached/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dotdeb.org/2008/08/25/storing-your-php-sessions-using-memcached/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=storing-your-php-sessions-using-memcached</link>
	<description>The repository for Debian-based LAMP servers</description>
	<lastBuildDate>Tue, 07 Feb 2012 13:02:44 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Guillaume Plessis</title>
		<link>http://www.dotdeb.org/2008/08/25/storing-your-php-sessions-using-memcached/comment-page-2/#comment-23289</link>
		<dc:creator>Guillaume Plessis</dc:creator>
		<pubDate>Sun, 11 Dec 2011 11:57:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.dotdeb.org/?p=85#comment-23289</guid>
		<description>@Stefan : thanks for this notice and for sharing scache. It&#039;s clear that using Memcached to store PHP sessions requires some precaution to avoid data loss : monitoring of the available key space and redundancy.
Antoher performant solution for persistent session storage is Redis. FYI, the phpredis extension (php5-redis package) has a built-in session handler.</description>
		<content:encoded><![CDATA[<p>@Stefan : thanks for this notice and for sharing scache. It&#8217;s clear that using Memcached to store PHP sessions requires some precaution to avoid data loss : monitoring of the available key space and redundancy.<br />
Antoher performant solution for persistent session storage is Redis. FYI, the phpredis extension (php5-redis package) has a built-in session handler.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan</title>
		<link>http://www.dotdeb.org/2008/08/25/storing-your-php-sessions-using-memcached/comment-page-2/#comment-23285</link>
		<dc:creator>Stefan</dc:creator>
		<pubDate>Sat, 10 Dec 2011 20:49:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.dotdeb.org/?p=85#comment-23285</guid>
		<description>Problem with using memcached for session backend is that it does not quarantee to retain data until its TTL expires. It can freely expire entries prematurely to free up memory for new data to be stored. By storing session data there, you might end up losing your session or parts of your session without knowing it has happened.

To be provide reliable solution, you need to store data redundantly somewhere else or you need persistent storage for you sessions. One lightweight solution is Scache (http://scache.nanona.fi).</description>
		<content:encoded><![CDATA[<p>Problem with using memcached for session backend is that it does not quarantee to retain data until its TTL expires. It can freely expire entries prematurely to free up memory for new data to be stored. By storing session data there, you might end up losing your session or parts of your session without knowing it has happened.</p>
<p>To be provide reliable solution, you need to store data redundantly somewhere else or you need persistent storage for you sessions. One lightweight solution is Scache (<a href="http://scache.nanona.fi" rel="nofollow">http://scache.nanona.fi</a>).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Guillaume Plessis</title>
		<link>http://www.dotdeb.org/2008/08/25/storing-your-php-sessions-using-memcached/comment-page-2/#comment-22576</link>
		<dc:creator>Guillaume Plessis</dc:creator>
		<pubDate>Fri, 21 Oct 2011 05:45:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.dotdeb.org/?p=85#comment-22576</guid>
		<description>@Bughunter : your solution is wrong in à non-sticky load-balanced environment</description>
		<content:encoded><![CDATA[<p>@Bughunter : your solution is wrong in à non-sticky load-balanced environment</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bughunter</title>
		<link>http://www.dotdeb.org/2008/08/25/storing-your-php-sessions-using-memcached/comment-page-2/#comment-22534</link>
		<dc:creator>Bughunter</dc:creator>
		<pubDate>Fri, 21 Oct 2011 00:37:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.dotdeb.org/?p=85#comment-22534</guid>
		<description>this is overhead - if it is just for the session files, mount your /tmp to a ramdisk
tmpfs   /tmp   tmpfs   defaults   0   0</description>
		<content:encoded><![CDATA[<p>this is overhead &#8211; if it is just for the session files, mount your /tmp to a ramdisk<br />
tmpfs   /tmp   tmpfs   defaults   0   0</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: xdaudaudau</title>
		<link>http://www.dotdeb.org/2008/08/25/storing-your-php-sessions-using-memcached/comment-page-1/#comment-22403</link>
		<dc:creator>xdaudaudau</dc:creator>
		<pubDate>Tue, 11 Oct 2011 13:31:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.dotdeb.org/?p=85#comment-22403</guid>
		<description>it seems that many site are confused between memcache and memcached.

for memcached : http://fr2.php.net/manual/en/book.memcached.php

or 
http://www.solanara.net/solanara/memcached
the 2nd one is not in english, but realy helpfull</description>
		<content:encoded><![CDATA[<p>it seems that many site are confused between memcache and memcached.</p>
<p>for memcached : <a href="http://fr2.php.net/manual/en/book.memcached.php" rel="nofollow">http://fr2.php.net/manual/en/book.memcached.php</a></p>
<p>or<br />
<a href="http://www.solanara.net/solanara/memcached" rel="nofollow">http://www.solanara.net/solanara/memcached</a><br />
the 2nd one is not in english, but realy helpfull</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Web Hosting</title>
		<link>http://www.dotdeb.org/2008/08/25/storing-your-php-sessions-using-memcached/comment-page-1/#comment-22360</link>
		<dc:creator>Web Hosting</dc:creator>
		<pubDate>Tue, 27 Sep 2011 07:46:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.dotdeb.org/?p=85#comment-22360</guid>
		<description>Just wanted to tell that I use memcached to store session files with Debian 6.0 for hosting many websites and it works perfectly!</description>
		<content:encoded><![CDATA[<p>Just wanted to tell that I use memcached to store session files with Debian 6.0 for hosting many websites and it works perfectly!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: What do I change in php.ini file so that the sessions are handled in memcache? - Admins Goodies</title>
		<link>http://www.dotdeb.org/2008/08/25/storing-your-php-sessions-using-memcached/comment-page-1/#comment-22214</link>
		<dc:creator>What do I change in php.ini file so that the sessions are handled in memcache? - Admins Goodies</dc:creator>
		<pubDate>Sun, 14 Aug 2011 09:08:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.dotdeb.org/?p=85#comment-22214</guid>
		<description>[...] answer, read these pages, and it should explain it a bit [...]</description>
		<content:encoded><![CDATA[<p>[...] answer, read these pages, and it should explain it a bit [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hakan</title>
		<link>http://www.dotdeb.org/2008/08/25/storing-your-php-sessions-using-memcached/comment-page-1/#comment-22122</link>
		<dc:creator>Hakan</dc:creator>
		<pubDate>Wed, 06 Jul 2011 08:48:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.dotdeb.org/?p=85#comment-22122</guid>
		<description>Hi guys,

  My Server Debian 6, i use PHP 5.3.6 and Memcached version 2.0.0b1.

 ı traying start session but memcache gived error:

Apache error log msg:

 PHP Warning:  Unknown: Failed to write session data (memcached). Please verify that the current setting of session.save_path is correct (tcp://127.0.0.1:11211) in Unknown on line 0

I&#039;m and more than 5K people need solutions for this problem. :)</description>
		<content:encoded><![CDATA[<p>Hi guys,</p>
<p>  My Server Debian 6, i use PHP 5.3.6 and Memcached version 2.0.0b1.</p>
<p> ı traying start session but memcache gived error:</p>
<p>Apache error log msg:</p>
<p> PHP Warning:  Unknown: Failed to write session data (memcached). Please verify that the current setting of session.save_path is correct (tcp://127.0.0.1:11211) in Unknown on line 0</p>
<p>I&#8217;m and more than 5K people need solutions for this problem. <img src='http://www.dotdeb.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Which No-SQL DBs are recommended for storing PHP session data? - Quora</title>
		<link>http://www.dotdeb.org/2008/08/25/storing-your-php-sessions-using-memcached/comment-page-1/#comment-4474</link>
		<dc:creator>Which No-SQL DBs are recommended for storing PHP session data? - Quora</dc:creator>
		<pubDate>Tue, 11 Jan 2011 17:20:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.dotdeb.org/?p=85#comment-4474</guid>
		<description>[...] Why not use memcached? There&#039;s already an adapter for it. Instructions are available here: http://www.dotdeb.org/2008/08/25...Insert a dynamic date hereCannot add comment at this [...]</description>
		<content:encoded><![CDATA[<p>[...] Why not use memcached? There&#039;s already an adapter for it. Instructions are available here: <a href="http://www.dotdeb.org/2008/08/25...Insert" rel="nofollow">http://www.dotdeb.org/2008/08/25&#8230;Insert</a> a dynamic date hereCannot add comment at this [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: codef0rmer</title>
		<link>http://www.dotdeb.org/2008/08/25/storing-your-php-sessions-using-memcached/comment-page-1/#comment-2843</link>
		<dc:creator>codef0rmer</dc:creator>
		<pubDate>Thu, 14 Oct 2010 08:06:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.dotdeb.org/?p=85#comment-2843</guid>
		<description>I have installed memcache on server 192.168.0.1 to store sessions.

In firefox, i accessed 192.168.0.2/index.php:
ini_set(‘session.save_handler’, “memcache”);
ini_set(‘session.save_path’, “tcp://192.168.0.1:11211?persistent=1&amp;weight=1&amp;timeout=1&amp;retry_interval=15″);
session_start();
$_SESSION[&#039;username&#039;] = ‘foobar’;
print_r($_SESSION); //Prints above defined session array

Again in firefox in new tab, i accessed 192.168.0.3/index.php: 
ini_set(‘session.save_handler’, “memcache”);
ini_set(‘session.save_path’, “tcp://192.168.0.1:11211?persistent=1&amp;weight=1&amp;timeout=1&amp;retry_interval=15″);
session_start();
print_r($_SESSION); //It should print above defined session array 

But it does not work in my case. Will it affect as I m setting save handler and path using ini_set?</description>
		<content:encoded><![CDATA[<p>I have installed memcache on server 192.168.0.1 to store sessions.</p>
<p>In firefox, i accessed 192.168.0.2/index.php:<br />
ini_set(‘session.save_handler’, “memcache”);<br />
ini_set(‘session.save_path’, “tcp://192.168.0.1:11211?persistent=1&amp;weight=1&amp;timeout=1&amp;retry_interval=15″);<br />
session_start();<br />
$_SESSION['username'] = ‘foobar’;<br />
print_r($_SESSION); //Prints above defined session array</p>
<p>Again in firefox in new tab, i accessed 192.168.0.3/index.php:<br />
ini_set(‘session.save_handler’, “memcache”);<br />
ini_set(‘session.save_path’, “tcp://192.168.0.1:11211?persistent=1&amp;weight=1&amp;timeout=1&amp;retry_interval=15″);<br />
session_start();<br />
print_r($_SESSION); //It should print above defined session array </p>
<p>But it does not work in my case. Will it affect as I m setting save handler and path using ini_set?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using apc
Database Caching 2/15 queries in 0.005 seconds using apc
Object Caching 348/353 objects using apc

Served from: www.dotdeb.org @ 2012-02-07 23:03:26 -->
