<?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>Eoin O'Sullivan &#187; session variables</title>
	<atom:link href="http://www.eoinosullivan.ie/tag/session-variables/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.eoinosullivan.ie</link>
	<description>Web Developer based in Dublin, Ireland</description>
	<lastBuildDate>Wed, 11 Aug 2010 09:25:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Using Session Variables in Javascript without Cookies</title>
		<link>http://www.eoinosullivan.ie/using-session-variables-in-javascript-without-cookies/</link>
		<comments>http://www.eoinosullivan.ie/using-session-variables-in-javascript-without-cookies/#comments</comments>
		<pubDate>Fri, 14 May 2010 13:46:45 +0000</pubDate>
		<dc:creator>Eoin</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[client side]]></category>
		<category><![CDATA[cookies]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[session variables]]></category>

		<guid isPermaLink="false">http://www.eoinosullivan.ie/?p=97</guid>
		<description><![CDATA[Until a fully implemented HTML5 spec comes along and solves everyone&#8217;s problems, there are still some tricky issues to be dealt with when trying to store data on the client side. And of course, html5 wont be of much help &#8230; <a href="http://www.eoinosullivan.ie/using-session-variables-in-javascript-without-cookies/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Until a fully implemented HTML5 spec comes along and solves everyone&#8217;s problems, there are still some tricky issues to be dealt with when trying to store data on the client side. And of course, html5 wont be of much help when you&#8217;re still developing for older browsers. For example, take IE7 and it&#8217;s <a target="new" href="http://msdn.microsoft.com/en-us/library/ms531424(VS.85).aspx">userdata</a> implementation. It&#8217;s baffling and can be quite difficult to explain/understand. </p>
<p>In a recent implementation, I also found that it wasn&#8217;t persisting data across an entire website but only for particular pages. So I started to look for an alternative and found this <a href="http://www.thomasfrank.se/sessionvars.html">implementation of session variables without using cookies</a>.  </p>
<p>Cookies are <a href="http://developer.yahoo.com/performance/rules.html#cookie_size">never a good thing</a> and should be reduced at all costs. Remember that they get sent for every request from the domain, even for images and other static files so that&#8217;s using up a lot of bandwidth. Anyways, back to this very clever javascript implementation. This small script allows you to use session variables by manipulating the window object in javascript. It&#8217;s not incredibly secure but it is a very useful means for storing arbitrary pieces of data and is really incredibly clever.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.eoinosullivan.ie/using-session-variables-in-javascript-without-cookies/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

