diff --git a/extdbms/lib/Controllers/Client/CouponController.php b/extdbms/lib/Controllers/Client/CouponController.php index 768b7fc..bff18b9 100644 --- a/extdbms/lib/Controllers/Client/CouponController.php +++ b/extdbms/lib/Controllers/Client/CouponController.php @@ -103,9 +103,9 @@ class CouponController extends ClientController return $this->redirect->to(DBMS_SITE_URL . "/IdcCouponUseMK.cup?client_code=" . $this->service->getClientCode())->send(); } catch (\PDOException $e) { $this->getServiceService()->rollback(); - return $this->redirect->back()->withInput()->with('error', '쿠폰 사용에 실패하였습니다.:' . $e->getMessage())->send(); + return $this->redirect->to(DBMS_SITE_URL . "/IdcCouponListMK.cup?client_code=" . $this->service->getClientCode())->withInput()->with('error', '쿠폰 사용에 실패하였습니다.:' . $e->getMessage())->send(); } catch (\Exception $e) { - return $this->redirect->back()->withInput()->with('error', '쿠폰 사용에 실패하였습니다.:' . $e->getMessage())->send(); + return $this->redirect->to(DBMS_SITE_URL . "/IdcCouponListMK.cup?client_code=" . $this->service->getClientCode())->withInput()->with('error', '쿠폰 사용에 실패하였습니다.:' . $e->getMessage())->send(); } } } //Class diff --git a/extdbms/lib/Core/Http/Session.php b/extdbms/lib/Core/Http/Session.php index d948b86..90a1342 100644 --- a/extdbms/lib/Core/Http/Session.php +++ b/extdbms/lib/Core/Http/Session.php @@ -19,6 +19,10 @@ class Session extends Http mkdir(APP_SESSION_PATH, APP_SESSION_PERMISSION, true); } session_save_path(APP_SESSION_PATH); + // session_start() 하기 전에 반드시 세션ID를 세팅해야 함 + if (isset($_GET['PHPSESSID'])) { + session_id($_GET['PHPSESSID']); + } session_start(); } } diff --git a/extdbms/lib/Views/dbms/client/coupon/index.php b/extdbms/lib/Views/dbms/client/coupon/index.php index 2ec2958..26251e5 100644 --- a/extdbms/lib/Views/dbms/client/coupon/index.php +++ b/extdbms/lib/Views/dbms/client/coupon/index.php @@ -134,7 +134,6 @@ @if ($client)