troubleshooting Question

Session_start(): Cannot send session cache limiter warning

Avatar of andy7789
andy7789 asked on
PHP
23 Comments1 Solution383 ViewsLast Modified:
Hi X-perts,

I am migrating to another server with a different php configuration and getting this warning:

session_start(): Cannot send session cache limiter - headers already sent (output started ....

I have a main page where i start session and an iframe (the same page), which has another session_start() statement

My questions:

1. If I remove the session_start from the iFrame, I am not getting this warning, but my code is not functioning properly, because the iFrame cannot get session variables. What should I do?
2. Why did not I have this warning on the old php?
3. Maybe I should replicate exactly the same php.ini file?
4. What php.ini line could supress such a warning in my old php config?

Please, advise

Thanks

-A-
ASKER CERTIFIED SOLUTION
stormist

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 23 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 23 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros