controller:
public function login()
{
if($this->session->userdata(\'loggedIn\') == true)
{
redirect(\'profile\');
}
if(isset($_GET
Maybe late respond, as you can see when setting up the console, you need to add URL redirect when authenticating, please see image below. Thanks
When you are going to redirect it in same controller in which you are working then just write the following code.
$this->load->helper('url');
if ($some_value === FALSE/TRUE) {//You may give 0/1 as well,its up to your logic
redirect('same_controller/method', 'refresh');
}
And check whether you get $_GET['code']