php session function says deprecated
<p>I'm building a type of mini cms but when i try to use sessions i get this error:</p>

<p>Deprecated: Function session_is_registered() is deprecated in index.php on line 4 , where the code i use is:</p>

<pre><code>&lt;?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' );
?&gt; 
</code></pre>

<p>It also says something about header already sent...</p>
