<?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>PHP Tutorials Code Snippets and Php Tips &#187; logout function</title>
	<atom:link href="http://readytousesolutions.com/phpblog/tag/logout-function/feed/" rel="self" type="application/rss+xml" />
	<link>http://readytousesolutions.com/phpblog</link>
	<description>PHP tutorials - Examples of the most useful scripts</description>
	<lastBuildDate>Thu, 23 Sep 2010 06:54:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>PHP Tutorial : Membership script &#8211; Users Logout</title>
		<link>http://readytousesolutions.com/phpblog/php-tutorial-membership-script-users-logout/</link>
		<comments>http://readytousesolutions.com/phpblog/php-tutorial-membership-script-users-logout/#comments</comments>
		<pubDate>Sun, 14 Jun 2009 05:23:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Complete Scripts]]></category>
		<category><![CDATA[logout function]]></category>
		<category><![CDATA[php logout]]></category>
		<category><![CDATA[php user logout function]]></category>
		<category><![CDATA[users logout]]></category>

		<guid isPermaLink="false">http://www.crivionweb.com/phpblog/?p=279</guid>
		<description><![CDATA[Final step and the most easiest part is now users logging out. Just build a page called logout.php and put a link to it everywhere you want to give the option to users to logout &#38; here&#8217;s the function: &#60;?php &#8230; <a href="http://readytousesolutions.com/phpblog/php-tutorial-membership-script-users-logout/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Final step and the most easiest part is now users logging out. Just build a page called logout.php and put a link to it everywhere you want to give the option to users to logout &amp; here&#8217;s the function:</p>
<pre class="php">
<span class="phpScriptTag"><span class="phpOperator">&lt;</span><span class="phpOperator">?</span>php</span>
<span class="phpFunctionKeyword">function</span><span class="htmlText"> logoutUser</span><span class="phpOperator">(</span><span class="phpOperator">)</span> <span class="phpOperator">{</span>
<span class="phpFunction">session_unset</span><span class="phpOperator">(</span><span class="phpOperator">)</span><span class="phpText">;</span>
<span class="phpFunction">session_destroy</span><span class="phpOperator">(</span><span class="phpOperator">)</span><span class="phpText">;</span>
<span class="phpFunction">header</span><span class="phpOperator">(</span><span class="phpString">"Location<span class="phpOperator">:</span> homePage.php"</span><span class="phpOperator">)</span><span class="phpText">;</span>
<span class="phpFunction">exit</span><span class="phpOperator">(</span><span class="phpOperator">)</span><span class="phpText">;</span>
<span class="phpOperator">}</span>
<span class="phpComment">//here&#039;s how you put it in action
</span>
<span class="htmlText">
logoutUser</span><span class="phpOperator">(</span><span class="phpOperator">)</span><span class="phpText">;</span>
<span class="phpScriptTag"><span class="phpOperator">?</span><span class="phpOperator">&gt;</span></span>
</pre>
<p>Extraordinary,</p>
<p>Now you know how to build a complete membershipt script/site with php including registering module, logiging in &amp; check this thing, and of course users logout module.</p>
]]></content:encoded>
			<wfw:commentRss>http://readytousesolutions.com/phpblog/php-tutorial-membership-script-users-logout/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

