website session not set
<p>I'm kind of a website development nub so bear with me.</p>

<p>My problem is that the website php session doesn't seem to be set when I log in to my website. After ensuring that the username and password are correct, I have the following simple code:</p>

<pre><code>session_start();
$_SESSION['username'] = $myusername;
$_SESSION['password'] = $mypassword;
</code></pre>

<p>Content that should display after logging in is not displayed.</p>

<p>For example:</p>

<pre><code>if(isset($_SESSION['username'])){
echo "&lt;a class=\"logout\" href=\"logout.php\"&gt;&lt;img      src=\"Images\logout_button.png\"&gt;&lt;/a&gt;";
} 
else{
echo "&lt;a class=\"login\" href=\"main_login.php\"&gt;&lt;img src=\"Images\login_button.png\"&gt;&lt;/a&gt;";
}
</code></pre>

<p>The login button is always visible.</p>

<p>Thanks in advance,</p>

<p>Matt</p>
