Page 1 of 1

sessions do not register

Posted: Tue Nov 05, 2002 1:33 pm
by feiticeir0
Hi!

i'm having problems when working with cookies and sessions.

when i write the code for register a simple session, when i try to execute the page, the answer is:

cannot send http headers - alredy sent by (file name) !!

HELP - urgent

thanks in advance

Posted: Tue Nov 05, 2002 3:02 pm
by volka
read Sticky: Before Post Read: Warning: Cannot add header information
session support uses cookies by default. cookie data is sent within the response header.

Posted: Wed Nov 06, 2002 2:36 am
by phpcoder
i think u r sending something else before sending cookie or registering session.
When u r sending response to user u have to first send cookie or session register before sending anything to user.
:lol: