i have a registration page, when it registered successfully i push login page using my render function, but when i log in i got this error, this is my routes example
$klein->respond('/?', function ($request, $response, $service, $app) {
if (!$app->lazy->logged_in) {
$response->redirect(URL . 'order');
} else {
$con = new \Hozzaq\Controller\Index($request, $response, $service, $app);
$con->page();
}
});
and this is the request
[Tue Nov 28 03:57:35.595121 2017] [php7:notice] [pid 10473] [client 127.0.0.1:50772] Array\n(\n [Host] => o.p\n [Connection] => keep-alive\n [Content-Length] => 36\n [Cache-Control] => max-age=0\n [Origin] => http://o.p\n [Upgrade-Insecure-Requests] => 1\n [User-Agent] => Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.89 Safari/537.36\n [Content-Type] => application/x-www-form-urlencoded\n [Accept] => text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8\n [Referer] => http://o.p/registration\n [Accept-Encoding] => gzip, deflate\n [Accept-Language] => en-US,en;q=0.9,id;q=0.8\n [Cookie] => PHPSESSID=dcg1s34bvfg1i51hier9fk4d4t\n)\n, referer: http://o.p/registration i noticed that there's 2 referer while normally it only produce 1, is this the problem? if so how do i fix it? thanks
i have a registration page, when it registered successfully i push login page using my render function, but when i log in i got this error, this is my routes example
and this is the request
[Tue Nov 28 03:57:35.595121 2017] [php7:notice] [pid 10473] [client 127.0.0.1:50772] Array\n(\n [Host] => o.p\n [Connection] => keep-alive\n [Content-Length] => 36\n [Cache-Control] => max-age=0\n [Origin] => http://o.p\n [Upgrade-Insecure-Requests] => 1\n [User-Agent] => Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.89 Safari/537.36\n [Content-Type] => application/x-www-form-urlencoded\n [Accept] => text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8\n [Referer] => http://o.p/registration\n [Accept-Encoding] => gzip, deflate\n [Accept-Language] => en-US,en;q=0.9,id;q=0.8\n [Cookie] => PHPSESSID=dcg1s34bvfg1i51hier9fk4d4t\n)\n, referer: http://o.p/registration
i noticed that there's 2 referer while normally it only produce 1, is this the problem? if so how do i fix it? thanks