Re: HTTP Headers change using Authentication Module (Auth.php)
| From: | Justin Patrin | Date: | Fri, 12 Jan 2007 21:01:06 +0000 |
| Subject: | Re: HTTP Headers change using Authentication Module (Auth.php) | ||
| References: | 1 2 3 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-45485@lists.php.net to get a copy of this message | ||
On 1/12/07, Milo <search.lists@gmail.com> wrote:
On 1/11/07, Adam Harvey <aharvey@php.net> wrote: Quoting Milo <search.lists@gmail.com>:Try setting a cookie after you start the session maybe? -- Justin PatrinI am baffled as to why my http headers change when I use Auth.php.It's because Auth starts a session to keep track of the login details, which adds the headers you're looking at. As proof, compare the output of a blank PHP file to one with <?php session_start(); ?> in it. Adam Adam, just tested this and the headers are normal (not no-cache). my test file is <?php echo 'hi'; session_start(); echo 'there'; ?> and the header response is Date: Fri, 12 Jan 2007 18:47:02 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: Fri, 12 Jan 2007 18:48:02 GMT X-Powered-By: PHP/5.1.4 Content-Type: text/html Thanks for the suggesion, other ideas? Sorry if I'm a little confused about cross-posting.