# session\_start() error

**URL:** <https://forum.kirupa.com/t/session-start-error/83509>\
**Category:** Uncategorized\
**Created:** [March 19, 2005, 4:45pm UTC](https://forum.kirupa.com/t/session-start-error/83509 "2005-03-19T16:45:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![FlashNewby](https://avatars.discourse-cdn.com/v4/letter/f/5f8ce5/32.png) [@FlashNewby](https://forum.kirupa.com/u/FlashNewby)\
**Post date:** [March 19, 2005, 4:45pm UTC](https://forum.kirupa.com/t/session-start-error/83509/1 "2005-03-19T16:45:12Z")

</div>

**I’m getting this error when using session\_start() method:**

[color=red] **Warning** : session\_start(): Cannot send session cookie - headers already sent[/color]

[color=black]The funny thing is is that the session\_start() is on the first line of the code. I’m not doing any echo calls nor am I outputing anything to the browser before I make this call. [/color]

I am call a external php file to connect to the database and it has a die call in it, could this be the problem?

Regards
