<?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: Delete or expire a browser cookie</title>
	<atom:link href="http://www.tech-recipes.com/rx/1501/php_delete_or_expire_a_browser_cookie/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tech-recipes.com/rx/1501/php_delete_or_expire_a_browser_cookie/</link>
	<description>Computer and technology tutorials and guides</description>
	<lastBuildDate>Thu, 09 Feb 2012 21:01:25 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Vkijust4u</title>
		<link>http://www.tech-recipes.com/rx/1501/php_delete_or_expire_a_browser_cookie/comment-page-1/#comment-33810</link>
		<dc:creator>Vkijust4u</dc:creator>
		<pubDate>Tue, 26 Jul 2011 20:08:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-33810</guid>
		<description>Thanks dude...u owe me.....</description>
		<content:encoded><![CDATA[<p>Thanks dude&#8230;u owe me&#8230;..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kirill</title>
		<link>http://www.tech-recipes.com/rx/1501/php_delete_or_expire_a_browser_cookie/comment-page-1/#comment-48449</link>
		<dc:creator>Kirill</dc:creator>
		<pubDate>Tue, 17 May 2011 10:04:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-48449</guid>
		<description> Recommended by who? Here is a simple explanation why 1 is better than any of these mathematical calculations inside of setcookie command.</description>
		<content:encoded><![CDATA[<p> Recommended by who? Here is a simple explanation why 1 is better than any of these mathematical calculations inside of setcookie command.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sandip kalbhile</title>
		<link>http://www.tech-recipes.com/rx/1501/php_delete_or_expire_a_browser_cookie/comment-page-1/#comment-46492</link>
		<dc:creator>sandip kalbhile</dc:creator>
		<pubDate>Fri, 18 Feb 2011 09:52:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-46492</guid>
		<description>nice this is smart programming</description>
		<content:encoded><![CDATA[<p>nice this is smart programming</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: boopathi</title>
		<link>http://www.tech-recipes.com/rx/1501/php_delete_or_expire_a_browser_cookie/comment-page-1/#comment-46048</link>
		<dc:creator>boopathi</dc:creator>
		<pubDate>Tue, 01 Feb 2011 11:17:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-46048</guid>
		<description>Hi Experts, 

just i want to know about how to create cookies using CORE PHP 

Advance Thanks 

Regards
Mr . Dhenu</description>
		<content:encoded><![CDATA[<p>Hi Experts, </p>
<p>just i want to know about how to create cookies using CORE PHP </p>
<p>Advance Thanks </p>
<p>Regards<br />
Mr . Dhenu</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://www.tech-recipes.com/rx/1501/php_delete_or_expire_a_browser_cookie/comment-page-1/#comment-45863</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Wed, 26 Jan 2011 05:22:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-45863</guid>
		<description>no don&#039;t use unset() use setcookie()
the main unsuccessfull delete or expire cookie is because you made a cookie in dive folder inside host and you can&#039;t delete in diferent folder outside you made and cookie path is set value already.

for better security and successfully use :
setcookie(&quot;cookiename&quot;,&quot;&quot;,mktime(12,0,0,1, 1, 1990), &quot;/&quot;);
</description>
		<content:encoded><![CDATA[<p>no don&#8217;t use unset() use setcookie()<br />
the main unsuccessfull delete or expire cookie is because you made a cookie in dive folder inside host and you can&#8217;t delete in diferent folder outside you made and cookie path is set value already.</p>
<p>for better security and successfully use :<br />
setcookie(&#8220;cookiename&#8221;,&#8221;",mktime(12,0,0,1, 1, 1990), &#8220;/&#8221;);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jarrod Christman</title>
		<link>http://www.tech-recipes.com/rx/1501/php_delete_or_expire_a_browser_cookie/comment-page-1/#comment-45458</link>
		<dc:creator>Jarrod Christman</dc:creator>
		<pubDate>Tue, 11 Jan 2011 19:59:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-45458</guid>
		<description>Don&#039;t use unset($_COOKIE[&#039;variablename&#039;]). That will only unset the variable from the $_COOKIE superglobal array, it will not expire (delete) the cookie itself.</description>
		<content:encoded><![CDATA[<p>Don&#8217;t use unset($_COOKIE['variablename']). That will only unset the variable from the $_COOKIE superglobal array, it will not expire (delete) the cookie itself.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Erick S.</title>
		<link>http://www.tech-recipes.com/rx/1501/php_delete_or_expire_a_browser_cookie/comment-page-1/#comment-45350</link>
		<dc:creator>Erick S.</dc:creator>
		<pubDate>Thu, 06 Jan 2011 19:38:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-45350</guid>
		<description>Somehow it seems you always need to know the &#039;name of a cookie&#039;...But if you don&#039;t know this? 

I am busy with protecting pages from a Wordpress website. Protecting works fine...but now I want provide a &#039;log out&#039; button somewhere...but whatever I do...people stay logged in.

I want them to click on the &#039;log out&#039; button and then end up on the startpage of the website...on which are 2 options: enter website - member login

All Javascript and PHP trickery I have tried always need the name of the Cookie.

And when I get the name of the Cookie (with the webdevelopers toolbar in Firefox) and put this in the right position...it never works,

Help is needed...sigh...</description>
		<content:encoded><![CDATA[<p>Somehow it seems you always need to know the &#8216;name of a cookie&#8217;&#8230;But if you don&#8217;t know this? </p>
<p>I am busy with protecting pages from a Wordpress website. Protecting works fine&#8230;but now I want provide a &#8216;log out&#8217; button somewhere&#8230;but whatever I do&#8230;people stay logged in.</p>
<p>I want them to click on the &#8216;log out&#8217; button and then end up on the startpage of the website&#8230;on which are 2 options: enter website &#8211; member login</p>
<p>All Javascript and PHP trickery I have tried always need the name of the Cookie.</p>
<p>And when I get the name of the Cookie (with the webdevelopers toolbar in Firefox) and put this in the right position&#8230;it never works,</p>
<p>Help is needed&#8230;sigh&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: middlewhere</title>
		<link>http://www.tech-recipes.com/rx/1501/php_delete_or_expire_a_browser_cookie/comment-page-1/#comment-45289</link>
		<dc:creator>middlewhere</dc:creator>
		<pubDate>Tue, 04 Jan 2011 06:37:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-45289</guid>
		<description>Only the following worked for me:

unset($_COOKIE[&#039;the_cookie_name&#039;]); 

Thanks Webmaster Trainman2k</description>
		<content:encoded><![CDATA[<p>Only the following worked for me:</p>
<p>unset($_COOKIE['the_cookie_name']); </p>
<p>Thanks Webmaster Trainman2k</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: developer in php</title>
		<link>http://www.tech-recipes.com/rx/1501/php_delete_or_expire_a_browser_cookie/comment-page-1/#comment-45165</link>
		<dc:creator>developer in php</dc:creator>
		<pubDate>Thu, 30 Dec 2010 09:22:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-45165</guid>
		<description>now i can easily delete cookies..
Thank you...!</description>
		<content:encoded><![CDATA[<p>now i can easily delete cookies..<br />
Thank you&#8230;!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Webmaster Trainman2k</title>
		<link>http://www.tech-recipes.com/rx/1501/php_delete_or_expire_a_browser_cookie/comment-page-1/#comment-44938</link>
		<dc:creator>Webmaster Trainman2k</dc:creator>
		<pubDate>Tue, 21 Dec 2010 08:17:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-44938</guid>
		<description>To delete a cookie by resetting it has severe and drastic limits.
I have found that when using PHP, after the header has had any output, you cannot &#039;reset&#039; a cookie that way to make it expire.

In my opinion, a better way, (from a PHP programers&#039; view), is to use:
   unset($_COOKIE[&#039;the_cookie_name&#039;]);

From my experience, doing it this way, you can delete a cookie anywhere within the PHP code without a problem and not restricted to when or where you delete it..</description>
		<content:encoded><![CDATA[<p>To delete a cookie by resetting it has severe and drastic limits.<br />
I have found that when using PHP, after the header has had any output, you cannot &#8216;reset&#8217; a cookie that way to make it expire.</p>
<p>In my opinion, a better way, (from a PHP programers&#8217; view), is to use:<br />
   unset($_COOKIE['the_cookie_name']);</p>
<p>From my experience, doing it this way, you can delete a cookie anywhere within the PHP code without a problem and not restricted to when or where you delete it..</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached (User agent is rejected)
Database Caching 2/17 queries in 1.178 seconds using memcached
Object Caching 416/419 objects using memcached

Served from: www.tech-recipes.com @ 2012-02-10 04:30:15 -->
