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.

Member Avatar for diafol

You can't use start_session() after html (or generated) screen output, whether visible or not.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.