hi,

i get this error on one of my pages, however if i move the session start code to check if user is logged in down a few lines below some query code for searching the site it works fine.

why would moving the session start down a bit on the page resolve this issue?

many thanks

Hello, before you start session there should not be anything put on document, like html code or something, and also whitespace causes this problem.

i have googled this and saw that whitespace is the issue, however when it was on line one of the code before any html it did not work yet i move it below my connection file and other require once files and it executes no problem, weird??

thanks

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.