why do you think the session isn't working? If there is a run time error in 'file' then an error would be reported and the output terminated. If you have error reporting off then you would expect to get eactly what you see. Sounds like a problem inside 'file'.
Tim Ward St Ives Direct Please refer to the following disclaimer in respect of this message: http://www.stivesdirect.com/e-mail-disclaimer.html > -----Original Message----- > From: Félix García Renedo [mailto:[EMAIL PROTECTED]] > Sent: 16 August 2002 08:51 > To: php > Subject: sessions don't work > > > Hello, > I have a problem with php sessions. > I have a php file like: > > <? > session_start(); > session_register('pagina'); > ?> > <html> > <head> > ... > </head> > <body> > <? > include('file'); > ?> > ... > </html> > > I have done diferent proofs and I have seen that the problem > is that when I put include don't work sessions and if I left > session it works. When I put all together it prints in the > browser the code from "<html>" to "<body". It don't continue. > If I reload the page it works properly. But I haven't found > the way to do it automaticaly. > > Are there somebody who knows how to fix it? > > > Thanks. > > > > Un saludo. > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php