Hello,
Do you have output buffering enabled in your php.ini file ?
--snip--
; Output buffering allows you to send header lines (including cookies) even
; after you send body content, at the price of slowing PHP's output layer a
; bit. You can enable output buffering during runtime by cal
Hi Michael,
session_start(); must be the very first line of code on the page, with no
whitespaces trailing, else you'll get the 'header already sent' message:
Hth,
Andre
On Monday 12 July 2004 10:40 am, Michael Purdy wrote:
> Folks
>
> I am a new to php. I am currently learning about session
> When experimenting with a few simple lines of code
>
> This is line 14
>session_start();
>
>
> I get the following errors:
>
> Warning: session_start(): Cannot send session cookie - headers already sent by
> (output started at e:\http\cgi\a.php:14) in e:\http\cgi\a.php
From: http://www.php.net/manual/en/function.session-start.php
"Note: If you are using cookie-based sessions, you must call
session_start() before anything is outputted to the browser."
You have to put session_start before anything else.
On Mon, 2004-07-12 at 15:40, Michael Purdy wrote:
>
> W
Folks
I am a new to php. I am currently learning about session handling and would
appreciate some assistance with the following:
I am using php 4.3.7 and I am using the default values in the php.ini for
session.use_cookies = 1
session.cache_limiter = nocache
When experimenting with a few simp
- Original Message -
From: "Atif Jakupovic" <[EMAIL PROTECTED]>
Sent: Friday, March 28, 2003 1:14 PM
Subject: [PHP-INST] PHP: Cannot send session cookie - headers already sent
by
> Please, could you help me to find out why I'm getting an error message
> like one
6 matches
Mail list logo