RE: sessions don't work

From: Date: Fri, 16 Aug 2002 10:16:32 +0000
Subject: RE: sessions don't work
Groups: php.general 
Request: Send a blank email to php-general+get-112940@lists.php.net to get a copy of this message
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:felix@uva.es] > 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. >

« previous php.general (#112940) next »