diff --git a/controllers/LoginController.php b/controllers/LoginController.php index 3162dec8..cb8b69a8 100644 --- a/controllers/LoginController.php +++ b/controllers/LoginController.php @@ -10,9 +10,13 @@ class LoginController extends BaseController { public function __construct(\Slim\Container $container, string $sessionCookieName) { + $fp = fopen('/config/data/sql.log', 'a'); + $time_start = microtime(true); parent::__construct($container); $this->SessionService = SessionService::getInstance(); $this->SessionCookieName = $sessionCookieName; + fwrite($fp, "£££ Login controller - construction time : " . round((microtime(true) - $time_start),6) . "\n"); + fclose($fp); } protected $SessionService; @@ -20,6 +24,9 @@ class LoginController extends BaseController public function ProcessLogin(\Slim\Http\Request $request, \Slim\Http\Response $response, array $args) { + $fp = fopen('/config/data/sql.log', 'a'); + fwrite($fp, "£££ Login controller - ProcessLogin called\n"); + fclose($fp); $postParams = $request->getParsedBody(); if (isset($postParams['username']) && isset($postParams['password'])) { diff --git a/routes.php b/routes.php index 7541eede..6d6324b7 100644 --- a/routes.php +++ b/routes.php @@ -11,6 +11,7 @@ fwrite($fp, "*** routing - dep load time : " . round((microtime(true) - $route_t $main_route_time_start = microtime(true); $session_cookie_name = $appContainer->LoginControllerInstance->GetSessionCookieName(); +fwrite($fp, "*** routing - session cookie name time : " . $session_cookie_name . "\n"); fwrite($fp, "*** routing - get session cookie name time : " . round((microtime(true) - $main_route_time_start),6) . "\n"); $session_auth_middelware = new SessionAuthMiddleware($appContainer, $session_cookie_name);