Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

session_start() error ! Help me!

Status
Not open for further replies.

9111981

MIS
Joined
Oct 28, 2003
Messages
1
Location
VN
Hi everybody!
I wrote a page for login called login.php :
&quot;<?php
session_start();
?>
<html>
<head>
<title>Welcome!</title>
...&quot;
But there are two warnings like this :
&quot;Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at C:\ in C:\ on line 2

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\ in C:\ on line 2&quot;
What was happened to me ?
Please help me ! Thanks !
 
This is usualy because something has altreay been sent from the script. Is the bit you included the actual script ???. If not post that but first look for anything getting sent, even a single space will cause the error.

kevin
 
yup, those double qoutes that u have inserted at the start are they there in the code?

Known is handfull, Unknown is worldfull
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top