Sessions warning since upgrading to php 5.5
I had been using php version 5.2 and everything was working fine but when I upgraded to version 5.5 I started getting a warning saying:
Warning: session_start(): Cannot send session cache limiter - headers already sent
This doesnt make any sense to me as I do not have any output prior to calling the session_start() and also why would I get this warning with php 5.5 and not with 5.2? This is how I start all of my pages:
Any chance you saved your script as UTF-8 with BOM (byte order mark)? If so, the BOM is normally invisible but the first character(s) in the file.
PS: In that case, fix is to save it as UTF-8 without BOM if your editor allows, or else save as plain ASCII.
Tried your suggestion but no luck. Still getting the same error message.
Originally Posted by NogDog
Where does the error message say that output was started? Maybe this file is being included by another file, and that parent file is the one doing output at some point?
Only other thing I can think of is if you have your PHP configuration doing an auto_prepend_file, which could be causing output to be generated (including the annoying newline following the closing ?> tag -- which is why I leave those tags out ).
Any chance you have tried it the other way around?
Originally Posted by mcco
See if that comes up with another error or not.
... and please remember to wrap code with forum BBCode tags:-
[CODE]...[/CODE] [HTML]...[/HTML] [PHP]...[/PHP]
If you can't think outside the box, you will be trapped forever with no escape...
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)