i m working with sessions..
i have problem with sessions
here is my coding
"
<?php
session_register("admin_id");
if($_SESSION["admin_id"]=="")
{
header("location: login.php");
}
?>
"
i want to register a session
but when i use session_register function i got error ""Deprecated: Function session_register() is deprecated in C:\xampp\htdocs\xampp\c\admin\session_check.php on line 2""
help me..how can i register session without this error...