<?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>Megjegyzések: A sok süti hízlal, ne sütit együnk</title>
	<atom:link href="http://webakademia.hu/2008/05/a-sok-suti-hizlal-ne-sutit-egyunk/feed/" rel="self" type="application/rss+xml" />
	<link>http://webakademia.hu/2008/05/a-sok-suti-hizlal-ne-sutit-egyunk/</link>
	<description>/ András webkettőt fejleszt /</description>
	<lastBuildDate>Tue, 07 Feb 2012 09:36:26 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>Turulcsirip - Bártházi András</title>
		<link>http://webakademia.hu/2008/05/a-sok-suti-hizlal-ne-sutit-egyunk/comment-page-1/#comment-865</link>
		<dc:creator>Turulcsirip - Bártházi András</dc:creator>
		<pubDate>Wed, 28 May 2008 07:57:16 +0000</pubDate>
		<guid isPermaLink="false">http://webakademia.hu/?p=165#comment-865</guid>
		<description>[...] http://webakademia.hu/2008/05/a-sok-suti-hizlal-ne-sutit-egyunk/#comment-863 (utolsó hozzászólás)  &#171; előző &#124; Bártházi András &#8212; 2008. 05. 28. [...]</description>
		<content:encoded><![CDATA[<p>[...] <a href="http://webakademia.hu/2008/05/a-sok-suti-hizlal-ne-sutit-egyunk/#comment-863" rel="nofollow">http://webakademia.hu/2008/05/a-sok-suti-hizlal-ne-sutit-egyunk/#comment-863</a> (utolsó hozzászólás)  &laquo; előző | Bártházi András &mdash; 2008. 05. 28. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Balogh Tibor</title>
		<link>http://webakademia.hu/2008/05/a-sok-suti-hizlal-ne-sutit-egyunk/comment-page-1/#comment-863</link>
		<dc:creator>Balogh Tibor</dc:creator>
		<pubDate>Wed, 28 May 2008 07:26:39 +0000</pubDate>
		<guid isPermaLink="false">http://webakademia.hu/?p=165#comment-863</guid>
		<description>duplabe-jegyzés: a név kötelez! :)</description>
		<content:encoded><![CDATA[<p>duplabe-jegyzés: a név kötelez! <img src='http://webakademia.hu/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Bártházi András</title>
		<link>http://webakademia.hu/2008/05/a-sok-suti-hizlal-ne-sutit-egyunk/comment-page-1/#comment-862</link>
		<dc:creator>Bártházi András</dc:creator>
		<pubDate>Wed, 28 May 2008 07:15:32 +0000</pubDate>
		<guid isPermaLink="false">http://webakademia.hu/?p=165#comment-862</guid>
		<description>duplabe: szuper, lehet hogy összehozok egy másik bejegyzést is ezekből. :)</description>
		<content:encoded><![CDATA[<p>duplabe: szuper, lehet hogy összehozok egy másik bejegyzést is ezekből. <img src='http://webakademia.hu/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Bártházi András</title>
		<link>http://webakademia.hu/2008/05/a-sok-suti-hizlal-ne-sutit-egyunk/comment-page-1/#comment-861</link>
		<dc:creator>Bártházi András</dc:creator>
		<pubDate>Wed, 28 May 2008 07:15:06 +0000</pubDate>
		<guid isPermaLink="false">http://webakademia.hu/?p=165#comment-861</guid>
		<description>Péter: olvass utána az egyes oldalakon - másik honlap nem fér hozzá, amúgy meg annyira biztonságos mint bármilyen más információ, amit a saját gépén tárol a felhasználó.</description>
		<content:encoded><![CDATA[<p>Péter: olvass utána az egyes oldalakon &#8211; másik honlap nem fér hozzá, amúgy meg annyira biztonságos mint bármilyen más információ, amit a saját gépén tárol a felhasználó.</p>
]]></content:encoded>
	</item>
	<item>
		<title>duplabe</title>
		<link>http://webakademia.hu/2008/05/a-sok-suti-hizlal-ne-sutit-egyunk/comment-page-1/#comment-856</link>
		<dc:creator>duplabe</dc:creator>
		<pubDate>Tue, 27 May 2008 17:48:39 +0000</pubDate>
		<guid isPermaLink="false">http://webakademia.hu/?p=165#comment-856</guid>
		<description>Egy újabb megoldás: PersistJS (http://pablotron.org/?cid=1557)</description>
		<content:encoded><![CDATA[<p>Egy újabb megoldás: PersistJS (<a href="http://pablotron.org/?cid=1557" rel="nofollow">http://pablotron.org/?cid=1557</a>)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Arató Péter</title>
		<link>http://webakademia.hu/2008/05/a-sok-suti-hizlal-ne-sutit-egyunk/comment-page-1/#comment-846</link>
		<dc:creator>Arató Péter</dc:creator>
		<pubDate>Sun, 25 May 2008 09:58:48 +0000</pubDate>
		<guid isPermaLink="false">http://webakademia.hu/?p=165#comment-846</guid>
		<description>Arról lehet tudni vmit hogy ez mennyire biztonságos? Mennyire tudja maga a felhasználó a tárolt adatot módosítani, ill. mondjuk távolról egy másik honlap, link...</description>
		<content:encoded><![CDATA[<p>Arról lehet tudni vmit hogy ez mennyire biztonságos? Mennyire tudja maga a felhasználó a tárolt adatot módosítani, ill. mondjuk távolról egy másik honlap, link&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Balogh Tibor</title>
		<link>http://webakademia.hu/2008/05/a-sok-suti-hizlal-ne-sutit-egyunk/comment-page-1/#comment-844</link>
		<dc:creator>Balogh Tibor</dc:creator>
		<pubDate>Sat, 24 May 2008 19:06:31 +0000</pubDate>
		<guid isPermaLink="false">http://webakademia.hu/?p=165#comment-844</guid>
		<description>Nincs mit! - A kódból hiányzik az s deklarációja.
Igen, én is tőled találtam meg a leírást:
(Bártházi András) =&gt; (John Resig) =&gt; MDC =&gt; MSDN =&gt; Az általad megadott oldal, keresgélés után.</description>
		<content:encoded><![CDATA[<p>Nincs mit! &#8211; A kódból hiányzik az s deklarációja.<br />
Igen, én is tőled találtam meg a leírást:<br />
(Bártházi András) =&gt; (John Resig) =&gt; MDC =&gt; MSDN =&gt; Az általad megadott oldal, keresgélés után.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Bártházi András</title>
		<link>http://webakademia.hu/2008/05/a-sok-suti-hizlal-ne-sutit-egyunk/comment-page-1/#comment-843</link>
		<dc:creator>Bártházi András</dc:creator>
		<pubDate>Sat, 24 May 2008 18:46:12 +0000</pubDate>
		<guid isPermaLink="false">http://webakademia.hu/?p=165#comment-843</guid>
		<description>Balogh Tibor: Szuper, köszi! Hihetetlen, hogy ez a lehetőség már az Internet Explorerben 5-ben (1999. március) is benne volt, és csak most kezd(het) el elterjedni. Tisztára mint az XMLHttpRequest esetében. Aki hozzám hasonlóan egy WTF-ot dobott a fenti kódban a behaviouros megoldás láttán: http://msdn.microsoft.com/en-us/library/ms531424.aspx</description>
		<content:encoded><![CDATA[<p>Balogh Tibor: Szuper, köszi! Hihetetlen, hogy ez a lehetőség már az Internet Explorerben 5-ben (1999. március) is benne volt, és csak most kezd(het) el elterjedni. Tisztára mint az XMLHttpRequest esetében. Aki hozzám hasonlóan egy WTF-ot dobott a fenti kódban a behaviouros megoldás láttán: <a href="http://msdn.microsoft.com/en-us/library/ms531424.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/ms531424.aspx</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Balogh Tibor</title>
		<link>http://webakademia.hu/2008/05/a-sok-suti-hizlal-ne-sutit-egyunk/comment-page-1/#comment-842</link>
		<dc:creator>Balogh Tibor</dc:creator>
		<pubDate>Sat, 24 May 2008 12:52:20 +0000</pubDate>
		<guid isPermaLink="false">http://webakademia.hu/?p=165#comment-842</guid>
		<description>Először is, köszi a bejegyzést, érdekes volt. A hozzászólásoknál meg úgy is említettétek, hogy a sütik nem csak a böngészőt, hanem a szervert is terhelik.
A bejegyzést olvasva készítettem egy jQuery plugin-t, Fx és IE alatt működik, de biztos lehet találni ennél kifinomultabb megoldásokat is.

&lt;pre lang=&quot;JavaScript&quot;&gt;/**
 * Storage jQuery plug-in.
 * set: $.Storage(&quot;foo&quot;, 1);
 * get: foo = $.Storage(&quot;foo&quot;);
 * delete: $.Storage(&quot;foo&quot;, null);
 */
(function($){
  var
    id = location.host,
    val = { //Interface
      getItem : function(n){},
      setItem : function(n, v){},
      removeItem : function(n){}
    };

  $.Storage = s = function(n, v){
    if (v === undefined) return val.getItem(n);
    if (v === null) val.removeItem(n);
    else val.setItem(n, v);
  }

  s.init = function(){
    if (window.globalStorage){
      val = globalStorage[id];
    } else if ($.browser.msie){
      $.extend(val = $(&#039;&lt;var/&gt;&#039;).hide()[0], {
      getItem: function(n){
        return this.getAttribute(n);
      },
      setItem: function(n, v){
        this.setAttribute(n, v);
        this.save(id);
      },
      removeItem: function(n){
        this.removeAttribute(n);
        this.save(id);
      }}).addBehavior(&#039;#default#userData&#039;);

      $(document).ready(function(){
        $(val).appendTo(&quot;body&quot;)[0].load(id);
      });
    }
  };
  s.init();
})(jQuery);&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Először is, köszi a bejegyzést, érdekes volt. A hozzászólásoknál meg úgy is említettétek, hogy a sütik nem csak a böngészőt, hanem a szervert is terhelik.<br />
A bejegyzést olvasva készítettem egy jQuery plugin-t, Fx és IE alatt működik, de biztos lehet találni ennél kifinomultabb megoldásokat is.</p>

<div class="wp_syntax"><div class="code"><pre class="javascript"><span style="color: #009966; font-style: italic;">/**
 * Storage jQuery plug-in.
 * set: $.Storage(&quot;foo&quot;, 1);
 * get: foo = $.Storage(&quot;foo&quot;);
 * delete: $.Storage(&quot;foo&quot;, null);
 */</span>
<span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>$<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
  <span style="color: #003366; font-weight: bold;">var</span>
    id <span style="color: #339933;">=</span> location.<span style="color: #006600;">host</span><span style="color: #339933;">,</span>
    val <span style="color: #339933;">=</span> <span style="color: #009900;">&#123;</span> <span style="color: #006600; font-style: italic;">//Interface</span>
      getItem <span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>n<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span>
      setItem <span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>n<span style="color: #339933;">,</span> v<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span>
      removeItem <span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>n<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><span style="color: #009900;">&#125;</span>
    <span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
&nbsp;
  $.<span style="color: #006600;">Storage</span> <span style="color: #339933;">=</span> s <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>n<span style="color: #339933;">,</span> v<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
    <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>v <span style="color: #339933;">===</span> undefined<span style="color: #009900;">&#41;</span> <span style="color: #000066; font-weight: bold;">return</span> val.<span style="color: #006600;">getItem</span><span style="color: #009900;">&#40;</span>n<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>v <span style="color: #339933;">===</span> <span style="color: #003366; font-weight: bold;">null</span><span style="color: #009900;">&#41;</span> val.<span style="color: #006600;">removeItem</span><span style="color: #009900;">&#40;</span>n<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000066; font-weight: bold;">else</span> val.<span style="color: #006600;">setItem</span><span style="color: #009900;">&#40;</span>n<span style="color: #339933;">,</span> v<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
&nbsp;
  s.<span style="color: #006600;">init</span> <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
    <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>window.<span style="color: #006600;">globalStorage</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
      val <span style="color: #339933;">=</span> globalStorage<span style="color: #009900;">&#91;</span>id<span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span> <span style="color: #000066; font-weight: bold;">else</span> <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>$.<span style="color: #006600;">browser</span>.<span style="color: #006600;">msie</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
      $.<span style="color: #006600;">extend</span><span style="color: #009900;">&#40;</span>val <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'&lt;var/&gt;'</span><span style="color: #009900;">&#41;</span>.<span style="color: #006600;">hide</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> <span style="color: #009900;">&#123;</span>
      getItem<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>n<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
        <span style="color: #000066; font-weight: bold;">return</span> <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #006600;">getAttribute</span><span style="color: #009900;">&#40;</span>n<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
      <span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span>
      setItem<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>n<span style="color: #339933;">,</span> v<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
        <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #006600;">setAttribute</span><span style="color: #009900;">&#40;</span>n<span style="color: #339933;">,</span> v<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #006600;">save</span><span style="color: #009900;">&#40;</span>id<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
      <span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span>
      removeItem<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>n<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
        <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #006600;">removeAttribute</span><span style="color: #009900;">&#40;</span>n<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #006600;">save</span><span style="color: #009900;">&#40;</span>id<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
      <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span>.<span style="color: #006600;">addBehavior</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#default#userData'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
      $<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span>.<span style="color: #006600;">ready</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
        $<span style="color: #009900;">&#40;</span>val<span style="color: #009900;">&#41;</span>.<span style="color: #006600;">appendTo</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;body&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#93;</span>.<span style="color: #006600;">load</span><span style="color: #009900;">&#40;</span>id<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
      <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
  <span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
  s.<span style="color: #006600;">init</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#40;</span>jQuery<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

]]></content:encoded>
	</item>
	<item>
		<title>Bártházi András</title>
		<link>http://webakademia.hu/2008/05/a-sok-suti-hizlal-ne-sutit-egyunk/comment-page-1/#comment-838</link>
		<dc:creator>Bártházi András</dc:creator>
		<pubDate>Fri, 23 May 2008 19:23:38 +0000</pubDate>
		<guid isPermaLink="false">http://webakademia.hu/?p=165#comment-838</guid>
		<description>Zrek: A cookie tárolás azért elég megbízhatóan működik minden böngészőben. :) De nem feltétlenül a sütik a jó megoldás erre a célra, inkább a fenti valamelyik könyvtárral a Flash vagy hasonló lehetőség kihasználása (JavaScriptből).</description>
		<content:encoded><![CDATA[<p>Zrek: A cookie tárolás azért elég megbízhatóan működik minden böngészőben. <img src='http://webakademia.hu/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  De nem feltétlenül a sütik a jó megoldás erre a célra, inkább a fenti valamelyik könyvtárral a Flash vagy hasonló lehetőség kihasználása (JavaScriptből).</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
