0
I have a file conexao.php
that makes the connection with the bank, I include it in all pages of my site using a require_once
, right after this beautiful start the session with a session_start()
.
The problem is that the session information is not being recorded correctly, when accessing the system with another user the session will be with the data of the last logged in user, when changing login and password, etc. The error that appears to me is the following:
"Warning: session_start() [Function.Session-start]: Cannot send Session cache Limiter - headers already sent (output Started at "
If I put the require_once
below the session_start()
this problem disappears and the session returns to work normally, however I get a problem in my layout (the page when occupying 100% of the screen is blank when used scroll).
These problems are happening on my remote server (Advanced Host), when tested locally on a WAMP server it works normally.
Matheus, I recommend that format your question for a better understanding and also be readable. You can do this on [Edit]. Read more on [Ask]
– gmsantos
Related question: http://answall.com/questions/4251/erro-do-php-cannot-modify-header-information
– gmsantos