PHP Session code work differently on two servers
        Posted  
        
            by williamsdb
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by williamsdb
        
        
        
        Published on 2010-04-18T18:43:17Z
        Indexed on 
            2010/04/18
            18:53 UTC
        
        
        Read the original article
        Hit count: 324
        
I have some code which works fine on one server but is giving a session header warning:
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent
on another.
I have checked the php.ini settings on the two servers and they are identical.
I know that the warning message is supposed to suggest that something has been outputted before the session_start but what I don't understand is why the same code works on one server but not the other.
Is there anything else that could be explaining it other than the php.ini settings?
© Stack Overflow or respective owner