Re: Problem with object in $_SESSION and include
Jean Vaillancourt spilled the following:
> Warning: Cannot send session cache limiter - headers already sent (output
> started at [...]/Produit.php:160) in [...]/ctrlappl.php on line 11
>
> where /Produit.php is the file containing my class and line 160 is the
> very last line of the file.
>
Trailing whitespace/non-printable chars in the include file? Try referencing
the session before including the class definition e.g.
session_register('some_random_name');
require_once('Produit.php');
$x=&$_SESSION['produit'];
HTH
C.
|