[PHP] Cannot send session cookie

2004-07-12 Thread Michael Purdy
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

Re: [PHP] Cannot send session cookie

2004-07-12 Thread André Ventura Lemos
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:

Re: [PHP] Cannot send session cookie

2004-07-12 Thread Michal Migurski
When experimenting with a few simple lines of code script language='php' This is line 14 session_start(); /script 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

Re: [PHP] Cannot send session cookie

2004-07-12 Thread Andre Dubuc
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: ?php session_start(); ? Hth, Andre On Monday 12 July 2004 10:40 am, Michael Purdy wrote: Folks I am a new to php. I am currently

Re: [PHP] Cannot send session cookie

2004-07-12 Thread Michael Gale
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

[PHP] Re: [PHP-INST] PHP: Cannot send session cookie - headers already sent by

2003-03-28 Thread Matt
- 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 below. Warning