CodeIgniter Forums
How to start session globally? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forum-28.html)
+--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forum-30.html)
+--- Thread: How to start session globally? (/thread-71769.html)

Pages: 1 2 3


RE: How to start session globally? - macruzgi - 11-08-2019

(11-04-2019, 09:14 PM)dave friend Wrote:
PHP Code:
namespace App\Controllers;
use 
App\Models\Modeloejemplo;
class 
Demo extends BaseController
{
public function 
__construct(){
    parent::__construct();  // <<< YOU MUST CALL THIS!! 

If calling that causes an error you must figure out why and fix it.


Thank you!
Everything is going well, the session is already working, my problem was with the redirect.
I am sorry I did not notice it, but thank you very much for the comments!

Big Grin  Big Grin  Big Grin  Big Grin