You MUST put the session_start() as the first thing in your file. THis has to be sent before any headers. As soon as you leave a single empty line or a HTML tag in front of it, you'll get the 'headers allready sent' error!
Edit: and you can use the supergloblal $_SESSION['varname'] to store and retreive stuff in your session variable!
|