note 46073 added to function.session-start

From: Date: Tue, 28 Sep 2004 14:57:11 +0000
Subject: note 46073 added to function.session-start
Groups: php.notes 
Request: Send a blank email to php-notes+get-77528@lists.php.net to get a copy of this message
Hi. I tested the function session_start() like this: ...</TITLE> </HEAD> <body> <CENTER> <?php session_start(); session_register('sesion'); session_register('customer_number'); session_register('name'); require ("db_connect.php"); ... When I work locally it works very well. But when I work in the remote server (whem I upload the pages to the ftp server) and I test, I get the following error: Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /var/www/html/inicio.php:8) in /var/www/html/inicio.php on line 9 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /var/www/html/inicio.php:8) in /var/www/html/inicio.php on line 9 It happens after typing username and password. Any suggestions shall be good received in my email. Thanks, Juan Urquijo ---- Manual Page -- http://www.php.net/manual/en/function.session-start.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+46073 Delete -- http://master.php.net/manage/user-notes.php?action=delete+46073&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+46073&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#77528) next »