HTTP Headers change using Authentication Module (Auth.php)

From: Date: Thu, 11 Jan 2007 21:25:51 +0000
Subject: HTTP Headers change using Authentication Module (Auth.php)
Groups: php.pear.dev php.pear.general 
Request: Send a blank email to pear-dev+get-45476@lists.php.net to get a copy of this message
Hello, I am baffled as to why my http headers change when I use Auth.php. Any ideas or help as to what is causing no cache headers to get generated? Is in Auth.php or some other place? I couldn't find anything in Auth.php when grepping for 'cache' but don't know where else to look. When I include Auth.php, the header looks like: Date: Thu, 11 Jan 2007 20:46:12 GMT Server: Apache/1.3.33 (Darwin) PHP/5.1.4 DAV/1.0.3 mod_ssl/2.8.24 OpenSSL/0.9.7i mod_perl/1.29 Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Expires: Thu, 19 Nov 1981 08:52:00 GMT X-Powered-By: PHP/5.1.4 Pragma: no-cache Connection: close Transfer-Encoding: chunked Content-Type: text/html 200 OK Otherwise it's: Date: Thu, 11 Jan 2007 21:21:57 GMT Server: Apache/1.3.33 (Darwin) PHP/5.1.4 DAV/1.0.3 mod_ssl/2.8.24 OpenSSL/0.9.7i mod_perl/1.29 Cache-Control: max-age=60 Expires: Thu, 11 Jan 2007 21:22:57 GMT X-Powered-By: PHP/5.1.4 Content-Type: text/html 200 OK I am using the Auth module like this: require_once "Auth/Auth.php"; $db_options = array( 'dsn' => "mysql://foobar:blam@localhost/blamdb", 'usernamecol' => get_usernamecol(), 'passwordcol' => 'password', 'table' => 'contacts', 'dbfields' => array('contacts_id'), ); $auth = new Auth("DB", $db_options, "loginFunction"); $auth->setFailedLoginCallback('loginFailed'); $auth->setLoginCallback('loginSuccess'); //$auth->setLogoutCallback('logoutSuccess'); // create the session $auth->start(); if ( is_admin() ) // 48 hours $auth->setIdle(60 * 60 * 48); else // 4 hr idle time for ordinary users $auth->setIdle(60 * 60 * 3); <snip> Any help is much appreciated! -- Milan Andric

« previous php.pear.dev (#45476) next »