Untitled

                Never    
PHP
       
<?php 

	session_start();

	$uname = "user";
	$pass = "123";

	if(isset($_POST['submit'])) {


		$username = $_POST['username'];
		$password = $_POST['password'];

		if(($username == $uname) && ($password == $pass)) {
			unset ($_SESSION["valid"]);

			header('Location: config.php');
		} else {
			$_SESSION['valid'] = "fail";
			header('Location: index.php');
		}

	}	

 ?>

Raw Text