I want to develop a web page that is displayed 30 seconds when 30 second passed next page is displayed for this purpose I write following code.but it doesnot work properly.
<?php
session_start();
$SESSION[‘timeout’]=time();
If($SESSION[‘timeout==time()+30]
{
session_destroy();
header(“Location:index2.php”);
}
?>
<html>
<body>
……
</body>
</html
Above code is written in index.php
can anybody help me?