On Mon, 2004-11-01 at 16:10, Vail, Warren wrote: > How did you go to the page that included the login page, if you included it > in the tiny_edit.php (which is the routine that sets the cookie in the > browser, you need to cause the browser to send it back to you by doing a > redirect; > > Header("Location: tiny_edit.php"); > Exit; > > When tiny_edit is entered the second time it should be able to retrieve the > cookie. (this is basically what you are doing manually by refreshing the > browser). > > HTH, > > Warren Vail yeah baby! thas what im talkin bout! thanks a lot :p if(!$_GET['instance'] && !$_POST['instance']){ $at = new AuthTool(); if($_POST['user'] && $_POST['pass']){ $at->auth($_POST['user'],$_POST['pass']); //set cookie Header("Location: tiny_edit.php"); Exit; } include "inc/tiny_edit_login.inc.php"; } thanks again all, jd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php