From 7d763bd81fa7c7bb68ed344f89279ba72058e9d2 Mon Sep 17 00:00:00 2001 From: Mathieu Nayrolles Date: Mon, 4 Jan 2016 19:43:09 -0500 Subject: [PATCH] add debug print for session #36 --- application/controllers/Ajax.php | 3 +++ application/views/header.php | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/application/controllers/Ajax.php b/application/controllers/Ajax.php index a1354e30..623fcedf 100644 --- a/application/controllers/Ajax.php +++ b/application/controllers/Ajax.php @@ -61,7 +61,10 @@ function login() { } echo json_encode($result); + }else{ + echo "POST FAIL"; } + } /** diff --git a/application/views/header.php b/application/views/header.php index 5f772f8a..ce167b48 100644 --- a/application/views/header.php +++ b/application/views/header.php @@ -148,4 +148,5 @@ - \ No newline at end of file + +session->userdata());?>