I have a conexao.php
file that connects to the database, I add it to every page of my site using a require_once
, right after that, I start the session with a session_start()
.
The problem is that the session information is not being written 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]: Can not send session cache limiter - headers already sent (output started at"
If I put require_once
below session_start()
this problem disappears and the session returns to normal operation, however I have a problem with my layout (the page when it occupies 100% of the screen is blank when used scroll).
These problems are happening on my remote server (Advanced Host), when tested locally on a serviced WAMP it works normally.