session error

A

Anonymous

Guest
something is being sent to the browser before the session cookie is created.

Make sure there are no spaces before the first <?php
 
Or, take use of this nifty function:
Code:
ob_start();
It prevents the compiler to flush (send it to the user) parsed info directly...
This way it's only sent when the buffer reaches its limit, at the end of the page, or when you command it to... =)
Meaning you can use functions such as session_start() or header() when html-material already has been sent...

/Osaou
 
Back
Top