0

I'm not a PHP specialist. I get a fatal error code when I use this code. Can someone help me to solve my problem?

<?php
session_start();
session_register('kal');
if(session_is_registered('menu')==FALSE)
{
echo "you have no access !!!";
include('login.htm');
exit;
}
else
{
//echo "Access ok $login.";
}
?>
koshi
  • 33
  • 4
  • What is the fatal error? – Hidde Dec 14 '14 at 21:41
  • what error do you get? – slfan Dec 14 '14 at 21:42
  • what is your php version? from the docs for [`session_register()`](http://php.net/manual/en/function.session-register.php) `Warning This function has been DEPRECATED as of PHP 5.3.0 and REMOVED as of PHP 5.4.0.` – Sean Dec 14 '14 at 21:42
  • 1
    This has already been answered here: http://stackoverflow.com/questions/16082420/call-to-undefined-function-session-register – Dan Dec 14 '14 at 21:42

0 Answers0