#37080 [Opn->Bgs]: Cannot send session cookie - Cannot modify header information
| From: | tony2001@php.net | Date: | Fri, 14 Apr 2006 09:42:38 +0000 |
| Subject: | #37080 [Opn->Bgs]: Cannot send session cookie - Cannot modify header information | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-95779@lists.php.net to get a copy of this message | ||
ID: 37080
Updated by: tony2001@php.net
Reported By: hodukibi at yahoo dot com
-Status: Open
+Status: Bogus
Bug Type: Session related
Operating System: Linux
PHP Version: 4.4.2
New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions. Due to the volume
of reports we can not explain in detail here why your report is not
a bug. The support channels will be able to provide an explanation
for you.
Thank you for your interest in PHP.
"output started at
/home2/glass/avsstouristservices-www/tiepthivn/wcms/aaa.php:8"
Previous Comments:
------------------------------------------------------------------------
[2006-04-14 09:13:00] hodukibi at yahoo dot com
Description:
------------
I just test file login.php but when I submit it show errors
session_start(): Cannot send session cookie and cannot modify header
information - headers already sent by ... I don't use echo or print
anything before
Reproduce code:
---------------
<body>
<?
$login = $_POST["login"];
if ($login==1) {
session_start();
$admin = "abc";
session_register("admin");
header("Location: admin.php");
}
?>
<form name="frmLogWP_User" method="post" action="login.php">
<input type="submit">
<input type=hidden name="login" value="1">
</form>
</body>
Expected result:
----------------
Warning: session_start(): Cannot send session cookie - headers already
sent by (output started at
/home2/glass/avsstouristservices-www/tiepthivn/wcms/aaa.php:8) in
/home2/glass/avsstouristservices-www/tiepthivn/wcms/aaa.php on line 11
Warning: session_start(): Cannot send session cache limiter - headers
already sent (output started at
/home2/glass/avsstouristservices-www/tiepthivn/wcms/aaa.php:8) in
/home2/glass/avsstouristservices-www/tiepthivn/wcms/aaa.php on line 11
Warning: Cannot modify header information - headers already sent by
(output started at
/home2/glass/avsstouristservices-www/tiepthivn/wcms/aaa.php:8) in
/home2/glass/avsstouristservices-www/tiepthivn/wcms/aaa.php on line 14
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=37080&edit=1