Hi there guys,
I am using a user authorization script to protect the administration section of a script, and it works great on all pages but one.
If I want to edit a submission, I go to the edit page, the user auth script works fine. When I click submit though, I get the following error at the top of the page:
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/roughing/public_html/automonial/admin/submit.php:1) in /home/roughing/public_html/automonial/admin/submit.php on line 51
This is the code that I'm using in the script for user authorization:
Line 51~~> session_start(); <~~ Line 51
if(!session_is_registered(myusername)){
header("location:login.php");
}
Does passing values in a form mess up sessions? How do I fix this?
thanks,
json