#16454 [Fbk->NoF]: Session Mangement, headers, command line

From: Date: Fri, 27 Sep 2002 01:18:13 +0000
Subject: #16454 [Fbk->NoF]: Session Mangement, headers, command line
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-20543@lists.php.net to get a copy of this message
ID: 16454 Updated by: sniper@php.net Reported By: jamie@caplex.com -Status: Feedback +Status: No Feedback Bug Type: Session related Operating System: RedHat Linux 7.1 PHP Version: 4.0.6 New Comment: No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Open". Thank you. Previous Comments: ------------------------------------------------------------------------ [2002-09-20 03:11:20] hholzgra@php.net starting with ini_set("session.use_cookies", false); before using any other session functions should help? ------------------------------------------------------------------------ [2002-09-19 13:08:45] jamie@caplex.com Yes. The workaround is to not to use the -q switch (headers set) and piping the result through 'tail' to strip the headers. Jamie ------------------------------------------------------------------------ [2002-09-19 12:47:26] kalowsky@php.net Is this still a valid request? ------------------------------------------------------------------------ [2002-04-05 12:28:56] sniper@php.net reclassified ------------------------------------------------------------------------ [2002-04-05 11:56:03] jamie@caplex.com I need to set the session id when processing a .php file from the command line. The purpose is to produce a .pdf by firstly running the php script and piping the output to an html file. I then run htmldoc on the html file to produce the pdf. When running php on the command line without the -q switch the headers are included in the pdf file. When the script is processed using the -q switch I get the warning: <i>Cannot send session cache limiter - headers already sent in <filename></i> It appears that I can remove the warning be either not including session_id($argv[1]) or running the script without the -q switch. Neither is an option for me. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=16454&edit=1

« previous php.bugs (#20543) next »