Fatal error: Call to undefined function session_register()

This function has been DEPRECATED as of PHP 5.3.0 and REMOVED as of PHP 5.4.0.

Ref: http://www.php.net/manual/en/function.session-register.php

Dont use session_register(), session_is_registered() and session_unregister()

You can use $_SESSION[] instead of that

Like as mentioned below:

$_SESSION['username']= "Your value";

Leave a Comment