I am using this code in php which show
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/4524698/php-cannot-modify-header-information">PHP - Cannot modify header information&hellip;</a>  </p>
</blockquote>



<blockquote>
  <p>error: Warning: Cannot modify header
  information - headers already sent by
  (output started at C:\Program
  Files\VertrigoServ\www\alok\cookies\Time\session.php:5)
  in C:\Program
  Files\VertrigoServ\www\alok\cookies\Time\session.php
  on line 8</p>
</blockquote>

<pre><code>&lt;?php
session_start();
$inactive = 10;
$session_life = time() - $_SESSION['timeout']; 
echo "$session_life";
if($session_life &gt; $inactive){
session_destroy(); 
header("Location: logout.php");
} 
$_SESSION['timeout']=time();
?&gt;
</code></pre>
