Notice: A session had already been started – ignoring session_start() in .. on line ..
For an error like this
Notice: A session had already been started – ignoring session_start() in .. on line ..
This happens when you try to start session more than once.
The solution for above problem is
1) in php.ini file set session.autostart to 0
session.auto_start = 0
2) In your code use this line
if (!session_id()) session_start();
instead of
session_start();
Similar Posts
No similar recipes.

I was told that, to get the session started, nothing, not
even a blanc line was allowed “before” the session_start() function call..
Will the session still be started properly?
[Reply]
Ajay Kumar Singh Reply:
December 18th, 2009 at 3:01 pm
The solution provided above is for the “Notice: A session had already been started – ignoring session_start() in .. on line ..” problem.
A blank line above session_start() would matter. After all it is a php code and in php blank lines are allowed.
[Reply]
Thank you very much… yeah its working fine for me
[Reply]
Thanks, i’ts solved my problem.
Thank you very much
[Reply]
thanks, man.
[Reply]
thank you…it worked…
[Reply]
Thanks for the help.. worked for me after searching a lot!
[Reply]