I have a problem calling the payment controller, I've tried using
 session_start ();
// Turn off all error reporting
error_reporting (0); 
but the data I call does not show up if using it
this is problem

this is my controller

I have a problem calling the payment controller, I've tried using
 session_start ();
// Turn off all error reporting
error_reporting (0); 
but the data I call does not show up if using it
this is problem

this is my controller

 
    
     
    
    You should use $this->load->library('session'); and not session_start()
put $this->load->library('session'); inside a constructor on your controller
something like this
public function __construct()
{
   parent::__construct();
   $this->load->library('session');
}
 
    
    You can use the "session" library of the codeigniter.
public function __construct(){
  parent::__construct();
  $this->load->library("session"):
}
//set session value
public function name-of-function(){
    $newdata = array(
        'username'  => 'johndoe',
        'email'     => 'johndoe@some-site.com',
        'logged_in' => TRUE
     );
     $this->session->set_userdata($newdata);
}
//accessing session value
public function()
{
   $username = $this->session->userdata("username");
   echo $username;
}
in the above function we are initialising the session library then setting session values and then accessing those value from the session. Hope it will help you.
for more information: https://www.codeigniter.com/user_guide/libraries/sessions.html
