RE: [phplib] no headers From: Daniel Bondurant (bondu <email protected>)
Date: 06/08/01

I finally tracked down my problem.

I am using session4.inc, and when it calls session_open().
php sends cookie information to the browser. IE is choking on
conflicting header/cookie information. Not quite sure what the root of
the problem is yet, but if I switch back to session.inc it works just
fine.

here is a simplified version of the script.
If I comment out session_start it will work, with it in, it breaks (no,
not because the if statment is failing - I commented out that as well).

<?

ini_set(default_mimetype,"image/jpeg");
session_name("MySession");
session_start();

$path = "/images/foo.jpg";
if ($auth->auth["uid"]) {
        header("Content-type: image/jpeg");
        header("Content-length: ". filesize($path));
        header("Content-Transfer-Encoding: binary");
        readfile($path);
}

?>

I would rather use session4.inc, but until I resolve this, I cannot.

---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>