index.php
<body>
<?php include("includes/header.php"); ?>
<?php
//start session
session_start();
//unset any session data until user submits valid username and password
// this is correct way not unset($_SESSION), sorry my mistake
// see http://www.php.net/manual/en/function.session-unset.php
session_unset();
session_destroy();
?>
<div id="login">
<form action="proseslogin.php" method="post" name="login" target="_self" id="login" style="style.css" title="login"><br />
<label>user : </label>
<input type="text" name="username" id="username" />
<label>password: </label>
<input type="text" name="password" id="password" />
<input type="submit" name="Login" id="Login" value="Login" />
</form>
<div id="searchwrapper"><form action="search.php">
<input type="text" class="searchbox" name="s" value="Search" onFocus="if (this.value=='Search')this.value='';" onBlur="if (this.value=='')this.value='Search'" />
<input type="image" src="Images/submit2.jpg" class="searchbox_submit" value="" />
</form></div>
</div>
There are some errors in my web.
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/sloki/user/masterli/sites/masterlink.co.id/www/cgoods/index.php:8) in /home/sloki/user/masterli/sites/masterlink.co.id/www/cgoods/index.php on line 29
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/sloki/user/masterli/sites/masterlink.co.id/www/cgoods/index.php:8) in /home/sloki/user/masterli/sites/masterlink.co.id/www/cgoods/index.php on line 29
line 29 is line 8 in my codes above.