Funkcja sesji php mówi, że jest przestarzała

Buduję typ mini cm, ale gdy próbuję korzystać z sesji, otrzymuję ten błąd:

Przestarzałe: Funkcja session_is_registered () jest przestarzała w index.php w linii 4, gdzie kod, którego używam to:

<?php
session_start(); //Start the session
define(ADMIN,$_SESSION['name']); //Get the user name from the previously registered super global variable
if(!session_is_registered("admin")){ //If session not registered
header("location:login.php"); // Redirect to login.php page
}
else //Continue to current page
header( 'Content-Type: text/html; charset=utf-8' );
?> 

Mówi też coś o nagłówku już wysłanym ...

questionAnswers(2)

yourAnswerToTheQuestion