From 5d76a3416673d340e8ed7a6938df42ddc4dc452e Mon Sep 17 00:00:00 2001
From: Onyxcodeotto <110540920+Onyxcodeotto@users.noreply.github.com>
Date: Fri, 17 Nov 2023 00:07:34 +0700
Subject: [PATCH] fix: minor fix session not initiated

---
 src/app/controllers/UserController.php | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/app/controllers/UserController.php b/src/app/controllers/UserController.php
index 1ecc8d4..4a42b85 100644
--- a/src/app/controllers/UserController.php
+++ b/src/app/controllers/UserController.php
@@ -4,6 +4,7 @@ class UserController extends Controller implements ControllerInterface
     public function index()
     {
         try {
+            session_start();
             switch($_SERVER['REQUEST_METHOD']) {
                 case 'GET':
                     $data = new stdClass();
-- 
GitLab