Help me people. Im working with sessions.

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
kewl_php
Forum Newbie
Posts: 3
Joined: Sat Apr 05, 2003 2:30 am

Help me people. Im working with sessions.

Post 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
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post 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
Post Reply