title: php login with SSL
body: <p>I've read a lot of questions here about how login can be connected to SSL and so on, but still the idea is not that clear. Based on what I read that I need to have an SSL setup and installed on my web server so that I can use the https secure connection on the page where a login is going to be used. Ok, I have done that part,but still wondering what to include in the login code in order to have the entire session must be over https. in some sites they mention that I have to add this code <code>tep_href_link(FILENAME_ACCOUNT, '', 'SSL')</code> so that the php login page or code be secure.</p>
  
  <p>any comments will be appreciated.</p>
  
  <p>Thanks a lot.  </p>
  
  <p><strong>Update:</strong> I believe that this code is very important to add so that the login page goes on the https. <code>if(!isset($_SERVER['HTTPS']))
  {
      header("location: https://" . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI']);<br>
  }</code></p>