Re: problem with include()
| From: | Jason Davis | Date: | Mon, 01 Nov 2004 23:36:18 +0000 |
| Subject: | Re: problem with include() | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-200890@lists.php.net to get a copy of this message | ||
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