0

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.

2
Contributors
1
Reply
2
Views
5 Years
Discussion Span
Last Post by diafol
0

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

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.