I receive a PHP warning:
"Notice: A session had already been started - ignoring session_start()".
This happens only on the localhost and not on the server.
The same file exists on server and localhost.
Why is there a variation of results ?
Here is my Code :
<?php session_start ();?>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>BookMyFilms - Register</title>
<link rel="stylesheet" type="text/css" href="css/styles.css">
</head>
</html>
<?php
$username = $_POST ['username'];
$_SESSION ['user'] = $username;
require ('includes/header.php');
require ('includes/db.php');
require ('includes/common.php');
Register ();
require ('includes/footer.php');?>