auto-logout problem

Paul Cueva paul@microsrv.net
Tue, 13 Mar 2001 19:48:32 +0000 (GMT)


Don't know if somebody else have the same problem before but I have just
installed IMP 2.2.4 together with Horde 1.2.4 under the following
configuration:

-	FreeBSD RELEASE 4.2
-	Apache 1.3.14
-	Mysql 3.23.33
-	PHP 4.0.4pl1 with patches
-	UW IMAP 4.7b

I was able to logon, but when I click one of the messages I was being
logged out automatically. Am a bit new to PHP, so tried looking at the
message.php3 and these are the lines that seems to log me out:

if (!isset($imp) || !is_object($imp)) {
  page_close();
  header('Location: ' . $sess->url('login.php3?reason=logout'));
  exit;
}

lib/imp.lib seems to have typecasted $imp into an object so it must be the
isset($imp) that's causing it. Hope that someone can help me figure out
the problem here.

Thanks,
Paul