I am registering a session as follows:
session_start();
session_register('username');
$_SESSION['username'] = $username;
In another php document, I call it as follows:
session_start();
$username = $_SESSION['username'];
This is at the very top of the document right under the database connection line.
The problem is, when I load the page with this code I get the following:
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /editfolder.php:2) in /editfolder.php on line 5
I do this the same way on every other page, and this is the only page that throws the warning. I have no idea what is going on. Can anyone help?
Todd