Forum Moderators: coopster
If you havent already. Do a search on Google for the error messages.
-------------------------
Check through your code prior to the session_start(); command. You will
have already output some text to the browser, and since headers (and
cookies which are contained within headers) need to be sent before any
output, this error is happening.
Look for any print, printf, or echo commands. Also look for
whitespaces, tabs etc. before the session_start();
Bear in mind your include('file') statements, they might be causing the
problem, rather than the code in the file you're working on.
-----------------------------
Hope this helps
As far as managing users goes you can do it a bunch of different ways. You can manage users in an sql table and then, once they have loggen in, put the info in a cookie. Only use one cookie, I have debugged a lot of code setting multiple cookies for logins that didn't work and switched to a single, longer, cookie.
I have a few pages that I need to protect by themselves and have used $PHP_AUTH_USER and $PHP_AUTH_PASS from arrays in the script to gain access.
php.net and mysql.com are the best resources.
Randy