At the moment my script is throwing a 'Headers Already Sent..." message when I attempt to set a cookie, but before this I start a session.

Is it this that throws the error message? Or is it possible to start a session, and then later on to set a cookie?