Probelem using sessionstart()
Hi,
i noticed another guy had a problem here using the SESSIONSTART() command, and i do too.. Here is my code:
<?php
ob_start();
session_start();
require_once('reg_form_functions.php');
//create our variable names
$email=$_POST['email'];
$username=$_POST['username'];
$password=$_POST['password'];
$password=$_POST['password2'];
?>
The above code generates the following errors:
Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /content/StartupHostPlus/j/s/www.jsten.co.uk/web/register_new.php:8) in /content/StartupHostPlus/j/s/www.jsten.co.uk/web/register_new.php on line 11
Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /content/StartupHostPlus/j/s/www.jsten.co.uk/web/register_new.php:8) in /content/StartupHostPlus/j/s/www.jsten.co.uk/web/register_new.php on line 11
hello
Why would this be so.. I notice that the solution apparantly is to include the sessionstart() first, but i am here and i am still getting this error.
Thanks
Steve
|