|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-11-25 11:19 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 06 17:00:01 2026 UTC |
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.