Thread: Session Error
View Single Post

  #1 (permalink)  
Old 07-25-2006
Michael Maus
 
Posts: n/a
Default Session Error

Hi,

the following php-snippet:

<?
// Fahrzeugverwaltung
// index.php
session_start();

// user-check
if (!isset($_SESSION['status']))
{
session_write_close();
header("Location: login.php");
}

[...]

?>

produces:

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /kunden/crea.de/webseiten/kunden/hmwa/index.php:1) in //webseiten/kunden/index.php on line 4

(Linux System)

I don't see, where a "<?" or two comment-lines could cause a header-output?

Thank you for any help!



Reply With Quote