Ok. Richard was right, the php code was placed in the middle of the html. I place it at the beguining oh the file (before html) and it works. Thanks Thanks also Daniel for your advice: "first use session_start() and than session_name" > Did you make sure everything below is BEFORE the html tag? > Also you can just set the variable $sesionvar like this: > $sesionvar = "fulanito"; > instead of > $HTTP_SESSION_VARS["sesionvar"] = "fulanito"; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]