Re: [PHP] Warning: Cannot send session cookie

2005-10-04 Thread Stephen Leaf
On Tuesday 04 October 2005 08:15 pm, John Taylor-Johnston wrote: > Any idea why I'm getting this error, and only on this page? I have the > same header on every other page? > http://testesp.flsh.usherb.ca/thingstodo.html > The page contains a \n before I start my > session_name( 'CCLTrolley' ); >

Re: [PHP] Warning: Cannot send session cookie

2005-10-04 Thread John Taylor-Johnston
Michael Crute wrote: The page contains a \n before I start my That \n is it. You can't send ANYTHING to the browser before you send the headers and cookies are part of the headers. Take out the \n and all should be well. Thanks. Dreamweaver screwed me over ;)

Re: [PHP] Warning: Cannot send session cookie

2005-10-04 Thread Jasper Bryant-Greene
John Taylor-Johnston wrote: Any idea why I'm getting this error, and only on this page? I have the same header on every other page? http://testesp.flsh.usherb.ca/thingstodo.html The page contains a \n before I start my Most likely, yes. Why didn't you try removing it before posting to the list

Re: [PHP] Warning: Cannot send session cookie

2001-12-26 Thread Jim Lucas [php]
take the closing php tag from the end of the first line plus the openning tag from the begining of the second line. that is sending a line feed to the browser. Jim - Original Message - From: "David Jackson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, December 26, 2001 5:5

Re: [PHP] Warning: Cannot send session cookie

2001-12-26 Thread Michael Sims
At 08:54 PM 12/26/2001 -0500, David Jackson wrote: >I'm trying use the script( and html page) to below to set session >variables, but >keep getting the follow errors: [...] > Browser Error Messages - >Warning: Cannot send session cookie - headers already sent by