note 46073 rejected from function.session-start by betz
| From: | betz@php.net | Date: | Tue, 28 Sep 2004 15:20:34 +0000 |
| Subject: | note 46073 rejected from function.session-start by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-77530@lists.php.net to get a copy of this message | ||
Note Submitter: juan_urquijo at yahoo dot com
----
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