Session Variable

From: Date: Fri, 04 Aug 2000 05:10:25 +0000
Subject: Session Variable
Groups: php.windows 
Request: Send a blank email to php-windows+get-1528@lists.php.net to get a copy of this message
Hi Folk's Excuse me if I am making elementary questions I'm a beginner one in PHP I'm trying to set a session variable using the code below: <? session_start(); $dandan = "Teste de session"; session_register( "$dandan"); ?> And trying to get this variable using: <? session_start(); echo $dandan; ?> But all I got was: Warning: Cannot send session cookie - headers already sent by (output started at D:\Inetpub\wwwroot\peg\form_eleicao.php:17) in D:\Inetpub\wwwroot\peg\form_eleicao.php on line 31 Warning: Cannot send session cache limiter - headers already sent by (output started at D:\Inetpub\wwwroot\peg\form_eleicao.php:17) in D:\Inetpub\wwwroot\peg\form_eleicao.php on line 31 What I'm doing wrong??? Thank you all Danilo Meles

« previous php.windows (#1528) next »