Click here to Skip to main content
15,894,740 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
deal all,

i have some problem when i try to log into the admin page i have received this kind of error

Fatal error: Call to undefined function session_is_registered() in /home/jobsbere/public_html/admin/index.php on line 17

PHP code is below and please give me the solution

session_start();

// The below checks restricts the user not to move back to the pages
// by unregistering the session variable control

if(@$_SESSION['user_info']['sess_status'] == "yes"){
session_unregister('user_info');
unset($user_info);
if(session_is_registered('message')){
session_unregister('message');
unset($message);
}
}

// unregistering the cp_message variable if the branching control was from change_pwd.php
if(session_is_registered('cp_message')){
session_unregister('cp_message');
unset($cp_message);
}

//Registering the message variables
session_register('message');
session_register('cp_message');

?>
Posted
Comments
Killzone DeathMan 30-Jun-14 12:17pm    
Like the error says.. "Call to undefined function session_is_registered()"!
The function is not defined! :P
nuke_infer 1-Jul-14 0:12am    
help me please
Killzone DeathMan 1-Jul-14 4:41am    
Maybe the problem is on the PHP version?
"session_register()"
"Warning: This function has been DEPRECATED as of PHP 5.3.0 and REMOVED as of PHP 5.4.0."

1 solution

You haven't defined session_is_registered() method anywhere.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900