I moved my site from php 5.3 to 5.4, and now I canβt login to the admin site
I see this error:
PHP Fatal error: call to undefined session_register () function in / home / regimhot / public _html / webmotionsV4 / mvc / models / kit_model_useri.php on line 18
The code with the problem:
function login($username, $password) { if(!$username || !$password) return false; if($this->useri[$username]['password']==$password) { session_register('userInfo'); $_SESSION['userInfo'] = $this->useri[$username]; $_SESSION['userInfo']['logat'] = true; $this->userInfo = &$_SESSION['userInfo'];
How can i solve the problem? I know that session_register function is not supported by php 5.4
source share