<?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>restriction of cookies &#8211; Programming blog &#8211; website programming blog, blog on website programming .net, java , php and mor</title>
	<atom:link href="https://www.searchenginegenie.com/programming-blog/tag/restriction-of-cookies/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.searchenginegenie.com/programming-blog</link>
	<description></description>
	<lastBuildDate>Tue, 20 Jul 2010 15:16:13 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.5.5</generator>
	<item>
		<title>How to use cookies in PHP</title>
		<link>https://www.searchenginegenie.com/programming-blog/how-to-use-cookies-in-php/</link>
					<comments>https://www.searchenginegenie.com/programming-blog/how-to-use-cookies-in-php/#respond</comments>
		
		<dc:creator><![CDATA[Camilla]]></dc:creator>
		<pubDate>Sat, 17 May 2008 07:27:00 +0000</pubDate>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Cookies in PHP]]></category>
		<category><![CDATA[restriction of cookies]]></category>
		<guid isPermaLink="false">http://www.searchenginegenie.com/programming-blog/how-to-use-cookies-in-php/</guid>

					<description><![CDATA[Cookies in PHP is done by using the statement setcookie() , this statement is available from the time when version 3 of PHP. int setcookie (string Name [, string Value [, int Expire [, string Path [, string Domain [, int Secure]]]]]); setcookie() defines a cookie that is sent the information from the header. Cookies [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>Cookies in PHP is done by using the statement setcookie() , this statement is available from the time when version 3 of PHP.</p>
<p>int setcookie (string Name [, string Value [, int Expire [, string Path [, string Domain [, int Secure]]]]]);</p>
<p>setcookie() defines a cookie that is sent the information from the header. Cookies are sent before any html tag; therefore, we call one of these statements before any tag  &lt;html&gt; or  &lt;head&gt;. This is a restriction of cookies, not for PHP.</p>
<p>All messages, except the name are optional.</p>
<ul>
<li> Name . Name of the cookie. If we create a cookie only with its name, the cookie name is existing in the Client under said name will be deleted. We can also replace to any argument with an empty string(&#8220;&#8221;).</li>
<li> Value . Value to be stored by the cookie in the Client.</li>
<li> Expire . The argument expire is an integer argument that indicates the time of the cookie will be deleted in the time format returned by the UNIX statements time() and mktime(). Time() + N seconds of duration is commonly used to specify the duration of the cookie.</li>
<li> Path . Subdirectory where the cookie has a value.</li>
<li> Domain . Domain where the cookie has a value. If we establish www.yourdomain.com as domain, the cookie is not set for domain.com. Meanwhile, if we establish yourdomain.com as domain, the cookie is set as for yourdomain.com as for www. yourdomain.com.</li>
<li> Secure . The secure indicates that the cookie will only be set by a secure HTTPS connection.</li>
</ul>
<p>Example</p>
<p>setcookie(&#8220;Ron&#8221;, &#8220;Victor&#8221;, time()+3600,&#8221;/&#8221;,&#8221;yahoo.com&#8221;);</p>
<p>In this example, we set a user name cookie that has the value Victor , lasts 1 hour (3600 seconds) valid for the whole domain yahoo.com</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.searchenginegenie.com/programming-blog/how-to-use-cookies-in-php/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/

Page Caching using Disk: Enhanced 
Minified using Disk

Served from: www.searchenginegenie.com @ 2024-06-26 14:40:00 by W3 Total Cache
-->