<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1038280" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1038280</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/session-sub-var#comment-1218524</link>
    <description> &lt;p&gt;If you are going to use a number as an index, try not using quotes.&lt;/p&gt;
 </description>
     <pubDate>Sat, 28 Apr 2007 21:38:42 +0000</pubDate>
 <dc:creator>pr0gr4mm3r</dc:creator>
 <guid isPermaLink="false">comment 1218524 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/session-sub-var#comment-1218518</link>
    <description> &lt;p&gt;Well I found the problem. Apparently I can&#039;t use numbers as the sub to sessions. It has to be something like $_SESSION[&#039;a&#039;] not $_SESSION[&#039;1&#039;]. WTF is that about??&lt;/p&gt;
 </description>
     <pubDate>Sat, 28 Apr 2007 19:54:17 +0000</pubDate>
 <dc:creator>teammatt3</dc:creator>
 <guid isPermaLink="false">comment 1218518 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/session-sub-var#comment-1218515</link>
    <description> &lt;p&gt;In the foreach loop the sessions are assigned, they just have a different variable as the sub. The subs in the foreach loop are 1,2,3,4 etc. When I call that session in the while loop, $tmp_id is 1,2,3 etc. The thing is, the session only works on the page where I have that foreach loop. On the foreach page, if I do &amp;lt;?=$_SESSION[&#039;1&#039;] ?&amp;gt; I will get a one, &amp;lt;?=$_SESSION[&#039;2&#039;] ?&amp;gt; I will get 2, etc. The session only works on the page where the sessions are assigned. It doesn&#039;t make sense to me. The second I go to the while loop page, the sessions don&#039;t work.&lt;/p&gt;
 </description>
     <pubDate>Sat, 28 Apr 2007 18:24:03 +0000</pubDate>
 <dc:creator>teammatt3</dc:creator>
 <guid isPermaLink="false">comment 1218515 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/session-sub-var#comment-1218514</link>
    <description> &lt;p&gt;I&#039;m not sure I understand what you want here.  I see you try to retrieve $_SESSION[$tmp_id], but you don&#039;t assign it anywhere.&lt;/p&gt;
 </description>
     <pubDate>Sat, 28 Apr 2007 18:03:16 +0000</pubDate>
 <dc:creator>pr0gr4mm3r</dc:creator>
 <guid isPermaLink="false">comment 1218514 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
