Page 1 of 1

Help me people. Im working with sessions.

Posted: Sat Apr 12, 2003 5:07 am
by kewl_php
i used session and i got this error msg:

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent

i just really don't know how to deal with it people. I used session to store the username of the members upon logging in.

Help people. tnx a lot

Posted: Sat Apr 12, 2003 5:26 am
by twigletmac
Have a read of:
viewtopic.php?t=1157

It applies to session_start() as well. You just need to make sure that session_start() is at the very top of your script so that it is called before there is any output to the browser.

Mac