<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[array in $_session[]]]></title><description><![CDATA[<p dir="auto">Salve<br />
sono un nuovo utente di questo forum ho da poco cominciata a vedere PHP e sto realizzando un applicazione con la gestione degli utente. per gestire le sessioni ho utilizzato "session_register" passandogli variabili e array, la mia applicazione in locale funziona ma quando l'ho caricata sul server web mi ha dato molti errori dovuti al fatto che "global_register" e messo ad off. Quindi vi chidevo, per recuperare le funzioni gia create, di spiegarmi un po come funziona $_session[], quali sono le differenze con session_register e se è possibile salvare array al suo interno in modo da non dover riprogettare le funzioni che ho, visto che fanno un grande uso di array</p>
<p dir="auto">grazie a tutti</p>
]]></description><link>https://dev.connect.gt/topic/16188/array-in-_session</link><generator>RSS for Node</generator><lastBuildDate>Fri, 27 Nov 2026 10:14:49 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/16188.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 06 Sep 2006 14:13:51 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to array in $_session[] on Wed, 06 Sep 2006 16:41:35 GMT]]></title><description><![CDATA[<p dir="auto">Cmq se vuoi usare le sessioni puoi fare:</p>
<pre><code>session_start();
$_SESSION['user_id'] = $user_id:
...
</code></pre>
<p dir="auto">E puoi memorizzare anche degli array.</p>
<p dir="auto">Per usarla basta usare $_SESSION['user_id']</p>
]]></description><link>https://dev.connect.gt/post/365516</link><guid isPermaLink="true">https://dev.connect.gt/post/365516</guid><dc:creator><![CDATA[margheritebianche]]></dc:creator><pubDate>Wed, 06 Sep 2006 16:41:35 GMT</pubDate></item><item><title><![CDATA[Reply to array in $_session[] on Wed, 06 Sep 2006 14:50:04 GMT]]></title><description><![CDATA[<p dir="auto">ECCO L' ERRORE</p>
<p dir="auto"><strong>Warning</strong>: Unknown(): Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to off, respectively. in <strong>Unknown</strong> on line <strong>0</strong></p>
]]></description><link>https://dev.connect.gt/post/365525</link><guid isPermaLink="true">https://dev.connect.gt/post/365525</guid><dc:creator><![CDATA[ricman]]></dc:creator><pubDate>Wed, 06 Sep 2006 14:50:04 GMT</pubDate></item><item><title><![CDATA[Reply to array in $_session[] on Wed, 06 Sep 2006 14:43:10 GMT]]></title><description><![CDATA[<p dir="auto">non penso sia quello il problema dato che io prendo sempre le variabili con $_POST e $_GET l'errore si presenta quando effettuo il login! prendo con $_POST nome utente e password e le salvo utilizzando la funzione session_register('user_id','user_pas','array_gra') dove array_gra e un array che contiene valori per la grafica dell'utente loggato. non so da cosa dipende</p>
<p dir="auto"><img src="https://dev.connect.gt/assets/plugins/nodebb-plugin-emoji/emoji/android/1f61e.png?v=12b9555a9a1" class="not-responsive emoji emoji-android emoji--disappointed" style="height:1.4em;width:auto;vertical-align:middle" title=":(" alt="😞" /></p>
]]></description><link>https://dev.connect.gt/post/365523</link><guid isPermaLink="true">https://dev.connect.gt/post/365523</guid><dc:creator><![CDATA[ricman]]></dc:creator><pubDate>Wed, 06 Sep 2006 14:43:10 GMT</pubDate></item><item><title><![CDATA[Reply to array in $_session[] on Wed, 06 Sep 2006 14:26:30 GMT]]></title><description><![CDATA[<p dir="auto">Se il tuo problema é che hai global_register ad off (ed in locale é on) non é un problema di sessioni bensì di variabili passate POST E GET. Con off se passi una variabile con POST o GET non te la ritrovi automaticamente definita, bensì la trovi nell'array $_POST o $_GET.<br />
Se ad esempio hai un form con un campo che si chiama nome, con il valore ad on hai anche la variabile PHP $nome, mentre con il parametro ad off hai la variabile $_POST['nome'] (o GET)</p>
]]></description><link>https://dev.connect.gt/post/365515</link><guid isPermaLink="true">https://dev.connect.gt/post/365515</guid><dc:creator><![CDATA[margheritebianche]]></dc:creator><pubDate>Wed, 06 Sep 2006 14:26:30 GMT</pubDate></item></channel></rss>