Well, without code is dificult to say, but session_start() don't send headers, then possible u have a space after a "?>" or @ least this is the common error... On Thu, Oct 30, 2008 at 11:47 PM, Ben Stones <stonesben@xxxxxxxxxxxxxx>wrote: > Hi, > > Hope I can explain this as easily as possible, basically I am using both > cookies and sessions for my script, whereby the user is allowed to choose > which method they want to login with. Problem for me is removing the > registration form, etc., from those that are logged in. The thing is the > form is in its own method in a seperate file, and its called within HTML > code so obviously if I included session_start() in the seperate include > file > where the methods/classes are, etc., I'd get a "headers already sent" > error. > So is there a solution to this? > > Thanks. > -- Thanks, Diogo Neves Web Developer @ SAPO.pt by PrimeIT.pt