I am helping with a a php/sql enhanced data site located at http://odn.acalltoduty.com/ We have a few problems.
We where tryng to fix the code after moving the site to a new machine. This php site was developed by hand by a former staff member. It is unlike any other php site. We began with a problem where you would get auto logged out of the website after browseing it just a few second. It was like the server was not keeping the session data. We added a session_start() proc to the main header but then sound that it caused an error in the logout.php file where it would not log out instead you get the following error.
Warning: Trying to destroy uninitialized session in /home/sites/odn/auth/logout.php on line 4
Warning: Cannot send session cache limiter - headers already sent (output started at /home/sites/odn/auth/logout.php:4) in /home/sites/odn/_inc/page.inc on line 12
we added session_start to page.inc
function doheader()
{
session_start();
?>
Before it was Just...
function doheader()
{
?>
Now if we remove the addition to fix the error in the log out page, we try to login and it won't even bring up the login page at all it just bounces back to index.php. If we have it in there we are able to login, atleast it i indicated that we are logged in but In trueth all pages there after do a dologin_check and It still treats us like we are not logged in.
Any thoughts on any of this?