"Alain Kumschick FrançOis Robert" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hello, > > I need a php script that checks if the there is a cookie set with the users > username > and if not > it brings you to an other page and telling you that you are not loged in! > > thanks for any help > > > alain kumschick > [EMAIL PROTECTED] > http://www.kumschicknw.com > > //simply chech the username as a cookie if(!isset($HTTP_COOKIE_VARS["username"]) { header("Location: loginerror.php"); //no cookie forward to the loginerror.php } else { //cookie exists. you should check whether the username is valid. besides your code is going here }
----------------------------- martina. -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php