Notice: A session had already been started - ignoring session_start()
aaaaaaaarrrrrgggghhhh!!!! this one is driving me nuts!!!
Moderator: General Moderators
That explains it then. When php "includes" a file, it just inserts the contents, so you had two session_start()'s, which is what the error message was telling you.deeessay wrote:the page i was referring to is actually an included page in another page that has a session_start....
I'm not sure what you mean. Ajax doesn't load a page, it merely returns data to the page that's already loaded. If the php script that Ajax calls needs to use session variables, it will need to have session_start(), too, but that has nothing to do with the page that was previously loaded.anyways, i think i found the problem.... that included page was brought by ajax.... is there a chance that the session_start is lost after ajax has loaded the page?