At the VERY TOP of my php page, I have:
<?php virtual("/include/logincheck.php") ?>logincheck.php contains exactly:
<?php
// login check
if(!isset($_SESSION["agent_id"]))
{
header("Location:/");
header("Connection: close");
exit;
}
?>However, if this "agent_id" is not set, I just get a blank page with html open and close tags.
I'm SURE there are no spaces or blank lines before these lines.
It works fine if I put the code in the main page instead of using the virtual include.
Output buffering is set to 4096 in php.ini.
Any suggestions would be appreciated.
Thanks, Barry
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

