﻿<?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>Ladysign Dev Blog &#187; Base64</title>
	<atom:link href="http://www.ladysign-apps.com/blog/tag/base64/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ladysign-apps.com/blog</link>
	<description>Girls can code.</description>
	<lastBuildDate>Mon, 01 Feb 2010 09:44:28 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Create a logout button in Joomla 1.5</title>
		<link>http://www.ladysign-apps.com/blog/code/encoding/create-a-logout-button-in-joomla-1-5/</link>
		<comments>http://www.ladysign-apps.com/blog/code/encoding/create-a-logout-button-in-joomla-1-5/#comments</comments>
		<pubDate>Sat, 27 Jun 2009 12:33:10 +0000</pubDate>
		<dc:creator>Lee</dc:creator>
				<category><![CDATA[encoding]]></category>
		<category><![CDATA[joomla]]></category>
		<category><![CDATA[opensource]]></category>
		<category><![CDATA[Base64]]></category>
		<category><![CDATA[converter]]></category>
		<category><![CDATA[Joomla 1.5]]></category>
		<category><![CDATA[logout]]></category>

		<guid isPermaLink="false">http://ladysign-apps.com/blog/?p=778</guid>
		<description><![CDATA[<p><strong>Difficulty:</strong> 1 out of 5 stars</p>
<p>In Joomla 1.5, you need to press the logout button within the login component, to log off your session.<br />
This logic doesn&#038;[......]</p>]]></description>
			<content:encoded><![CDATA[<p><strong>Difficulty:</strong> 1 out of 5 stars</p>
<p>In Joomla 1.5, you need to press the logout button within the login component, to log off your session.<br />
This logic doesn&#8217;t seem very clear for me. If I want to log-off I don&#8217;t want 2 page clicks/refreshes.</p>
<p>To create a logout button or menu link, you just need to invoke the logout URL part:</p>
<pre class="brush: jscript;">index.php?option=com_user&amp;task=logout&amp;return=Lw==</pre>
<p>Or incase when you have Search Engine Friendly (SEF) URL&#8217;s:</p>
<pre class="brush: jscript;">/logout.html?return=Lw</pre>
<p>Now did you note, the return=Lw== parameter?<br />
This parameter is for bringing you back to the return page, after logging out.<br />
The &#8220;Lw==&#8221;-value, is a Base64 encoding for &#8220;/&#8221; which brings you back to the root of the page.</p>
<p>Say that you don&#8217;t want to forward to the root, but to the &#8216;/goodbye/index.html&#8217; page?<br />
You will need the Base64 encoding of this string:</p>
<pre class="brush: jscript;">/logout.html?return=L2dvb2RieWUvaW5kZXguaHRtbA==</pre>
<p>Well, here&#8217;s your help, I found <a href="http://www.motobit.com/util/base64-decoder-encoder.asp">a nice online Base64 converter</a>, which does this job for you.</p>
<p>Check out<a href="http://www.sandranasicfans.eu/sandranasic/"> my website</a> to see it working in a Joomla 1.5 page.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ladysign-apps.com/blog/code/encoding/create-a-logout-button-in-joomla-1-5/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
