#30893 [Opn->Bgs]: session_register():
| From: | tony2001@php.net | Date: | Thu, 25 Nov 2004 10:20:24 +0000 |
| Subject: | #30893 [Opn->Bgs]: session_register(): | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-69439@lists.php.net to get a copy of this message | ||
ID: 30893
Updated by: tony2001@php.net
Reported By: nimishthomas at yahoo dot com
-Status: Open
+Status: Bogus
Bug Type: *General Issues
Operating System: win XP
PHP Version: 4.3.9
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.
Thank you for your interest in PHP.
Please, ask support questions in appropriate maillist:
http://www.php.net/support.php.
Previous Comments:
------------------------------------------------------------------------
[2004-11-25 09:55:56] nimishthomas at yahoo dot com
Description:
------------
ERROR:
Warning: session_register(): Cannot send session cookie - headers
already sent by (output started at c:\web\s1.php:2) in c:\web\s1.php on
line 6
iT IS RELATED TO Session.
Reproduce code:
---------------
<?php
if (!session_is_registered('count')) {
session_register('count');
$count = 1;
}
else {
$count++;
}
?>
Hello visitor, you have seen this page <?php echo $count; ?>
times.<p>;
<?php
echo SID
?>
To continue, <A HREF="nextpage.php?<?php echo SID?>">click here</A>
Expected result:
----------------
donot show the warning.
Actual result:
--------------
I got the session id . but warning is shown.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=30893&edit=1