473,403 Members | 2,071 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

"Cannot send session cookie ..." I truely DON'T output ANYTHING before calling session_start()

Hi,
there are many postings on this subject, I have read them put don't
have an answer.
I get these warnings: Cannot send session cookie - headers already sent
in,
but my php-scripts are okay.

As you can see in the code and response below, I really don't output
anything.
I am at EVANZO.

I will appreciate your help.

Juergen
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
my PHP-Code

#!/usr/bin/php
<?php
session_start();
if (!isset($_SESSION['content'])) {
$_SESSION['content']=""; $_SESSION['task']=0;
}
session_regisyoter("content");

error_reporting (E_ALL);
set_time_limit(0);

....
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
The Server Respose with telnet-command (header+body)

[root@localhost cgi-bin]# telnet www.juergengerstacker.de 80
GET /cgi-bin/get.cgi HTTP/1.1
Host: www.juergengerstacker.de
Trying 62.67.235.12...
Connected to www.juergengerstacker.de (62.67.235.12).
Escape character is '^]'.
HTTP/1.1 200 OK
Date: Wed, 30 Aug 2006 11:10:33 GMT
Server: Apache/1.3.19 (Unix) (SuSE/Linux) PHP/4.3.0
Connection: close
Transfer-Encoding: chunked
Content-Type: text/plain

bb
Warning: session_start() [http://www.php.net/function.session-start]:
Cannot send session cookie - headers already sent in
/home/www/htdocs/juergengerstacker.de/cgi-bin/get.cgi on line 3

1000

Warning: session_start() [http://www.php.net/function.session-start]:
Cannot send session cache limiter - headers already sent (output
started at /home/www/htdocs/juergengerstacker.de/cgi-bin/get.cgi:3) in
/home/www/htdocs/juergengerstacker.de/cgi-bin/get.cgi on line 3

Warning: set_time_limit() [http://www.php.net/function.set-time-limit]:
Cannot set time limit in safe mode in
/home/www/htdocs/juergengerstacker.de/cgi-bin/get.cgi on line 10

<html><head><title>
pop3-Mail: 0</title>

Aug 30 '06 #1
1 4654
juergen wrote:
Hi,
there are many postings on this subject, I have read them put don't
have an answer.
I get these warnings: Cannot send session cookie - headers already sent
in,
but my php-scripts are okay.

As you can see in the code and response below, I really don't output
anything.
I am at EVANZO.

I will appreciate your help.

Juergen
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
my PHP-Code

#!/usr/bin/php
<?php
session_start();
if (!isset($_SESSION['content'])) {
$_SESSION['content']=""; $_SESSION['task']=0;
}
session_regisyoter("content");

error_reporting (E_ALL);
set_time_limit(0);

...
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
The Server Respose with telnet-command (header+body)

[root@localhost cgi-bin]# telnet www.juergengerstacker.de 80
GET /cgi-bin/get.cgi HTTP/1.1
Host: www.juergengerstacker.de
Trying 62.67.235.12...
Connected to www.juergengerstacker.de (62.67.235.12).
Escape character is '^]'.
HTTP/1.1 200 OK
Date: Wed, 30 Aug 2006 11:10:33 GMT
Server: Apache/1.3.19 (Unix) (SuSE/Linux) PHP/4.3.0
Connection: close
Transfer-Encoding: chunked
Content-Type: text/plain

bb
Warning: session_start() [http://www.php.net/function.session-start]:
Cannot send session cookie - headers already sent in
/home/www/htdocs/juergengerstacker.de/cgi-bin/get.cgi on line 3

1000

Warning: session_start() [http://www.php.net/function.session-start]:
Cannot send session cache limiter - headers already sent (output
started at /home/www/htdocs/juergengerstacker.de/cgi-bin/get.cgi:3) in
/home/www/htdocs/juergengerstacker.de/cgi-bin/get.cgi on line 3

Warning: set_time_limit() [http://www.php.net/function.set-time-limit]:
Cannot set time limit in safe mode in
/home/www/htdocs/juergengerstacker.de/cgi-bin/get.cgi on line 10

<html><head><title>
pop3-Mail: 0</title>
Actually, you are outputting something - you're outputting

"#!/usr/bin/php"

This is only used if you're running the script from the shell - not when
the script is run under the web server.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Aug 30 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Erik T. Nomad | last post by:
I've created a link that will enable the reader of any page on my website to click it, enter an e-mail address, and have it arrive in that inbox with a hyperlink to the site. However, I'm...
3
by: Peter Theill | last post by:
Hi, I'm trying to include the content of a request into an Xml document: if (System.Web.HttpContext.Current.Session != null) { XmlDocument d = new XmlDocument(); d.Load(new...
1
by: stax | last post by:
Hello, I would like to add a Send Feedback feature to my application. Does anybody know or easy way to do this, any applications that do this, articles, samples or anything else that could give me...
5
by: jensen bredal | last post by:
I need to keep track on user "session data" while still turning session off as i do not want users login to expire? Thanks JB
5
by: Chris Robb | last post by:
I'm having some really odd behavior with a PHP script. I have it populating an HTML select form with a for loop. When I try the years 2006 to 1900. I get the following error: PHP Warning: ...
15
by: cj | last post by:
How can I get a button in VB to send the contents of a text box via email in a manner similar to the "Send To\Mail Recipient" functionality that you can select via right clicking a file in Windows...
3
by: Arnost Sobota | last post by:
Dear ASP community, I have a question regarding ASP session variables. My assumption was that a session variable has the same lifetime as the session itself: as a consequence, given that...
10
by: Kurda Yon | last post by:
Hi, I set the register_globals off and try to get my code working under the new conditions. I stuck on the following problem: Warning: Unknown(): Your script possibly relies on a session side-...
1
mikek12004
by: mikek12004 | last post by:
In top of my index I include funcs.php which is : <?php function GetCartId() { //if user logged on use username as identification, else use coockie for anonymous user if ($_SESSION==1) {...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.