How can I display an element only if user is logged in?
<p>I am trying to display a div  only if the user is logged in, therefore only if <code>$_SESSION['MM_Username']</code> exists and is equal to something so to achieve this I came up with the following code. The session variables are set and I know they exist however when I log out I still see the div: </p>

<pre><code>&lt;ul id="example-1" class="sticklr" style="list-style:none;display:&lt;?php if ($_SESSION['MM_Username']=='' &amp; $_SESSION['MM_Username']==NULL){echo('none');}?&gt;"&gt;
</code></pre>

<p>How can I debug this to see whats the problem, or if someone knows a better way to display a div only if user is logged in please let me know .</p>
