<?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>Linux 360° &#124; Italia &#187; tricks</title>
	<atom:link href="http://www.linux360.it/tag/tricks/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.linux360.it</link>
	<description>Notizie, guide e tutorial per il mondo Linux a 360°</description>
	<lastBuildDate>Tue, 16 Dec 2014 14:03:33 +0000</lastBuildDate>
	<language>it-IT</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=3.9.40</generator>
	<item>
		<title>WordPress: Gestire le variabili $_SESSION</title>
		<link>http://www.linux360.it/2014/01/10/wordpress-gestire-le-variabili-_session/</link>
		<comments>http://www.linux360.it/2014/01/10/wordpress-gestire-le-variabili-_session/#comments</comments>
		<pubDate>Fri, 10 Jan 2014 16:30:08 +0000</pubDate>
		<dc:creator><![CDATA[Paolo Daniele]]></dc:creator>
				<category><![CDATA[Programmazione]]></category>
		<category><![CDATA[Varie]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[session]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[tricks]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.paolodaniele.it/?p=1706</guid>
		<description><![CDATA[<p>Per gestire le variabili $_SESSION in WordPress si trova molto materiale in giro sulla rete. Non sempre però questo funziona realmente: plugin, guide, etc&#8230;.alla fine c&#8217;è sempre qualcosa che non torna. Ecco ho fatto tornare i conti! Per gestire le variabili $_SESSION[] all&#8217;interno di WordPress, la prima cosa da fare è aprire il file functions.php ...</p>
<p>L'articolo <a rel="nofollow" href="http://www.linux360.it/2014/01/10/wordpress-gestire-le-variabili-_session/">WordPress: Gestire le variabili $_SESSION</a> sembra essere il primo su <a rel="nofollow" href="http://www.linux360.it">Linux 360° | Italia</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>Per gestire le variabili $_SESSION in WordPress si trova molto materiale in giro sulla rete.</p>
<p>Non sempre però questo funziona realmente: plugin, guide, etc&#8230;.alla fine c&#8217;è sempre qualcosa che non torna.</p>
<p>Ecco ho fatto tornare i conti!</p>
<p>Per gestire le variabili $_SESSION[] all&#8217;interno di WordPress, la prima cosa da fare è aprire il file <strong><em>functions.php</em></strong> del vostro tema e inserire subito dopo il tag  di apertura di php:</p>
<div id="wpshdo_1" class="wp-synhighlighter-outer"><div id="wpshdt_1" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_1"></a><a id="wpshat_1" class="wp-synhighlighter-title" href="#codesyntax_1"  onClick="javascript:wpsh_toggleBlock(1)" title="Click to show/hide code block">Source code</a></td><td align="right"><a href="#codesyntax_1" onClick="javascript:wpsh_code(1)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_1" onClick="javascript:wpsh_print(1)" title="Print code"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.linux360.it/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_1" class="wp-synhighlighter-inner" style="display: block;"><pre class="php" style="font-family:monospace;"><span class="kw1">if</span><span class="br0">&#40;</span><span class="sy0">!</span><a href="http://www.php.net/session_id"><span class="kw3">session_id</span></a><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="br0">&#41;</span> add_action<span class="br0">&#40;</span><span class="st_h">'init'</span><span class="sy0">,</span> <span class="st_h">'session_start'</span><span class="br0">&#41;</span><span class="sy0">;</span></pre></div></div><strong><br />
</strong></p>
<p>Il gioco è fatto!</p>
<p>Adesso potete usare le variabili $_SESSION nel vostro WordPress!</p>
<p>Enjoy!</p>
<p>L'articolo <a rel="nofollow" href="http://www.linux360.it/2014/01/10/wordpress-gestire-le-variabili-_session/">WordPress: Gestire le variabili $_SESSION</a> sembra essere il primo su <a rel="nofollow" href="http://www.linux360.it">Linux 360° | Italia</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.linux360.it/2014/01/10/wordpress-gestire-le-variabili-_session/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
