hello Freind i have almost complted my first php application .. i wrote it in my local webser ..it works fine on my local server acctully the problem interpreting me is in admin page which should redirect the viewer to login page if the session is not set .. i am using this code at the starts of my admin cp page index that controll all the sub pages .
	please tell me what to do know ............
							
						
					Code:
	if (!isset($_SESSION['username']) && !isset($_SESSION['password'])) {
header ("location: login.php");
}
Comment