php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #16454 Session Mangement, headers, command line
Submitted: 2002-04-05 11:56 UTC Modified: 2002-09-26 20:18 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: jamie at caplex dot com Assigned:
Status: No Feedback Package: Session related
PHP Version: 4.0.6 OS: RedHat Linux 7.1
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: jamie at caplex dot com
New email:
PHP Version: OS:

 

 [2002-04-05 11:56 UTC] jamie at caplex dot 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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-04-05 12:28 UTC] sniper@php.net
reclassified
 [2002-09-19 12:47 UTC] kalowsky@php.net
Is this still a valid request?
 [2002-09-19 13:08 UTC] jamie at caplex dot 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-20 03:11 UTC] hholzgra@php.net
starting with

  ini_set("session.use_cookies", false);

before using any other session functions 
should help?


 [2002-09-26 20:18 UTC] sniper@php.net
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.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 11:01:29 2024 UTC