Re: [PHP-DB] Re: HTTP header information

2004-06-13 Thread franciccio
You may try with this: ?php ob_start();/* buffer the output so no header is sent until the script is complete*/ session_start(); if (!session_is_registered('_isLoggedIn')) { header (Location:viewer.php?type=login); } else { // do the stuff to submit a problem if they have // logged in and have

Re: [PHP-DB] Re: HTTP header information

2004-06-12 Thread Kim Steinhaug
Another little nift thing ive learned to always do regarding headers, is to always - ALWAYS - after a location have an exit; Example : header(location: somewhere.php); exit; Ive learned that sometimes someting odd happens to the server and PHP delivers notices and errors to the browser.

Re: [PHP-DB] Re: HTTP header information

2004-06-10 Thread Philip Thompson
On Jun 10, 2004, at 9:44 AM, Torsten Roehr wrote: Philip Thompson [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi all. I am running a website to where a user needs to login to authenticate themselves to perform certain tasks. So a user logs in, and I start a session (in PHP, of

Re: [PHP-DB] Re: HTTP header information

2004-06-10 Thread Torsten Roehr
Philip Thompson [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Jun 10, 2004, at 9:44 AM, Torsten Roehr wrote: Philip Thompson [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi all. I am running a website to where a user needs to login to authenticate

RE: [PHP-DB] Re: HTTP header information

2004-06-10 Thread James Harrell
Make sure that NO output is done before session_start() is called. Can you post some of your code? See, that's the case. Because I'm essentially just changing the content within the page, it never leaves the page 'viewer.php' - it just changes the content by tacking on '?type=login,