#26622 [NEW]: Download problem with session

From: Date: Mon, 15 Dec 2003 01:37:35 +0000
Subject: #26622 [NEW]: Download problem with session
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-52048@lists.php.net to get a copy of this message
From:             dozoyousan at mail dot goo dot ne dot jp
Operating system: windows2000
PHP version:      4.3.4
PHP Bug Type:     Unknown/Other Function
Bug description:  Download problem with session

Description:
------------
When I used session , don't download in Web browser.



Reproduce code:
---------------
<?
//	session_start();  // <= no plobrem
	session_start();  // <= don't download
	
	$file_name = "Download.csv";
	
	$file_ptr = fopen($file_name, "w");	
	
	for( $i = 0; $i < 9; $i++ )
		fwrite( $file_ptr, "$i, ".($i+1).", ".($i+2)."\n" );
	fclose( $file_ptr );
	
	header("Content-Disposition: attachment; filename=$file_name");
	header("Content-type: application/octet-stream");
	
	readfile($file_name);
	
?>


-- 
Edit bug report at http://bugs.php.net/?id=26622&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=26622&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=26622&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=26622&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=26622&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=26622&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=26622&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=26622&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=26622&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=26622&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=26622&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=26622&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=26622&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26622&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=26622&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=26622&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=26622&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=26622&r=float


Thread (2 messages)

« previous php.bugs (#52048) next »