start_session() after <html> tags generates error, Can it be used there somehow? If so, then how ? If not then what are the alternatives cause I have a function that generates some part of my <head></head> in my themes. So the session_start() definately has to saty in that function (e.g head(); ). This is beacuse in future I want my users to be able to code their own themes and I dont want them to add session_start to become obsitcle of why the themes aint working properly.