Re: sessions don't work

From: Date: Fri, 16 Aug 2002 10:24:15 +0000
Subject: Re: sessions don't work
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-112941@lists.php.net to get a copy of this message
May be the session is diable in the php.ini Félix garcía renedo wrote:
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 (#112941) next »