Why am I getting only first character in array stored in Session?
<p>I have an array (mysql query result) stored in $_SESSION variable.</p>

<p>Now, I try to access a member of that array like:</p>

<pre><code>$_SESSION["template"]["key"]
</code></pre>

<p>Now, the problem is that it gives only first character of the string "key". Strangely, it runs perfectly on localhost and also did on my previous hosting. (I am now on hostgator).</p>

<p>What am I doing wrong?</p>
