#28923 [NEW]: session_start() problem after flush()
| From: | joula at sztaki dot hu | Date: | Fri, 25 Jun 2004 14:34:41 +0000 |
| Subject: | #28923 [NEW]: session_start() problem after flush() | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-61369@lists.php.net to get a copy of this message | ||
From: joula at sztaki dot hu
Operating system: Windows XP
PHP version: 4.3.7
PHP Bug Type: Session related
Bug description: session_start() problem after flush()
Description:
------------
Hello,
There is a problem with session_start() when I call it after flush().
Thanks.
Reproduce code:
---------------
<?
flush();
session_start();
echo "here";
?>
Expected result:
----------------
Do not get warning.
Actual result:
--------------
Warning: session_start(): Cannot send session cookie - headers already
sent in ...
--
Edit bug report at http://bugs.php.net/?id=28923&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28923&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28923&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=28923&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=28923&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=28923&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=28923&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=28923&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=28923&r=support
Expected behavior: http://bugs.php.net/fix.php?id=28923&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=28923&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=28923&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=28923&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28923&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=28923&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=28923&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=28923&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=28923&r=float