base64 encoding/decoding in php
<p>I have implemented a cookie mechanism in my site.
All cookies that i wanted to store are in a array with their TTL, value, name ...</p>

<p>When i want to set the cookie, i serialize the tab, then i gzcompress and finally i base64_encode</p>

<pre><code>base64_encode(gzcompress(serialize($array)))
</code></pre>

<p>My problem is sometime, when i get the cookie with</p>

<pre><code>$_COOKIE[name]
</code></pre>

<p>the base64_encoded string is all in lowercase characters.</p>

<p>So my question is : 
- is that possible that all characters are in lowercase format (base64_encoded)</p>

<p>Or maybe i'am doing something wrong but the problem does not appear all the time and i can't reproduce the bug.</p>
