But headers can only be sent before all other content, check if your script is sending headers after having already sent content.
5. 'Warning: Cannot send session cookie - headers already sent...'や 'Cannot add header information - headers already set...'といった メッセージが出力されるのですが。 sent...'.