php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #26622 Download problem with session
Submitted: 2003-12-14 20:37 UTC Modified: 2003-12-14 20:51 UTC
From: dozoyousan at mail dot goo dot ne dot jp Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 4.3.4 OS: windows2000
Private report: No CVE-ID: None
 [2003-12-14 20:37 UTC] dozoyousan at mail dot goo dot ne dot jp
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);
	
?>


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-12-14 20:51 UTC] sniper@php.net
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.

Try reading the various user notes in the header and session pages in the manual. This is not PHP bug..

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 27 02:01:31 2024 UTC