I think I know how to fix this (long time since I worked with cookies)
Add the following to the top of the index.
PHP Code:
<?
require("forum/fnqglglob.php");
require("forum/fnqglconfig.php");
require("forum/admin/config.php");
?>
Before the require("layout/header.php");
The cookies from memory have to be loaded before the first < html > tag.
Mind you my memory is sad.