Starting session in php
<p>I am trying to create an option for users on my new site to log in with a session_start(); . Please keep in mind that if this is an easy fix, this is my first time doing this!</p>

<p>So far I have my log in page set up. I also have another page that checks the database and makes sure that the combination entered is correct. From that page which chegs the information I have this: </p>

<pre><code>session_register("myusername"); 
session_register("mypassword"); 
</code></pre>

<p>and it then redirects to the home page.</p>

<p>Then on the home page and all of the pages on the website I have </p>

<pre><code>session_start(); 
</code></pre>

<p>with no errors but I can tell there has been no session started because no session ID's show up when I echo session_id();</p>

<p>Can anyone give me a precise answer on how to get this to work? I really appreciate any help at all.</p>
