OK, first time using sessions. Help me out here. Im using a sessions code (below) to store the username in a session cookie...
I get this when its being processed:
Warning: session_register(): Cannot send session cookie - headers already sent by (output started at /var/www/html/forum/php/newthreadprocessor.php:7) in /var/www/html/forum/php/newthreadprocessor.php on line 241
Warning: session_register(): Cannot send session cache limiter - headers already sent (output started at /var/www/html/forum/php/newthreadprocessor.php:7) in /var/www/html/forum/php/newthreadprocessor.php on line 241
The session code(above) is being processed on tthe same page as forum data within the same delimiter. I'm guessing that might have something to do with this error.
What can I do to correct this?
PHP Code:
session_register("$username");
I get this when its being processed:
Warning: session_register(): Cannot send session cookie - headers already sent by (output started at /var/www/html/forum/php/newthreadprocessor.php:7) in /var/www/html/forum/php/newthreadprocessor.php on line 241
Warning: session_register(): Cannot send session cache limiter - headers already sent (output started at /var/www/html/forum/php/newthreadprocessor.php:7) in /var/www/html/forum/php/newthreadprocessor.php on line 241
The session code(above) is being processed on tthe same page as forum data within the same delimiter. I'm guessing that might have something to do with this error.
What can I do to correct this?
Comment