I too use sessions with header() redirects, with out the warnings. I too would think that the problem is some spaces or line breaks before your <?php tags. However, if you can't locate the problem, a "dirty" workarround might be achieved by enabling output buffering in your php.ini (output_buffering = On) (assuming you have access to the php.ini).
Rgds, Christian -----Original Message----- From: Martin.Andrew [mailto:[EMAIL PROTECTED]] Sent: 30. november 2001 11:51 To: [EMAIL PROTECTED] Subject: [PHP-WIN] Header() redirect Is there another function that does the same job as Header() I'm creating a forum, and when a user sends a message I call a function that checks name, password etc, then updates the DB and then calls the Header function to redirect the page. This would be fine except I am also using session library files that have the html headers already created, thus, while the redirects (it still redirects) I get the standard Warning: Cannot add header information - headers already sent by .... message, I know where the problem is but can't solve it without changing many function of the forum functionality. I have tried using plain javascript and this does work but there is again a split second delay that is very annoying. Thanks. -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]