title: echo message onto next page for 5 seconds/timeout message?
body: <p>i currently have my site configured so that when a user logs in they are navigated to the home page of my site and they get a welcome message within a session. the bit im having trouble with is finding a way to timeout or close this message or chage the css settings to display:none after 3 seconds.</p>
  
  <p>Can someone please show me how i could add a time out function onto this, heres what i got so far, thanks.</p>
  
  <p>User logs in using html login form, this submits and goes to login.php:</p>
  
  <p>inside login.php i have this:</p>
  
  <pre><code>&lt;?php
  if (logged_in()) 
  { 
  $_SESSION['login_message']="&lt;div class=\"login-overlay\"&gt;
  &lt;h1&gt;Login You In Securely&lt;/h1&gt;&lt;/div&gt;"; 
  header("Location:home.php");
  
  }
  ?&gt;
  </code></pre>
  
  <p>Then inside home.php i have this:</p>
  
  <pre><code>&lt;?
  session_start();
  if(isset($_SESSION['login_message'] ))
     echo $_SESSION['login_message'];
      unset($_SESSION['login_message']) ;
  
  ?&gt;
  </code></pre>
  
  <p>how can i add a 3 second rule to this so that it only shows for 3 seconds thanks.</p>