1
0
mirror of https://github.com/beestat/app.git synced 2025-07-09 03:04:07 -04:00

Fixed #161 - Reload loop after migration from beestat.io/dashboard to app.beestat.io

This is a temporary change to address the reload loop due to bad cookies from beestat.io
This commit is contained in:
Jon Ziebell 2019-10-20 23:00:09 -04:00
parent d60c5236fe
commit 48baf93f25

View File

@ -22,5 +22,27 @@
if(preg_match('/app\.beestat\.io/', $_SERVER['HTTP_HOST']) !== 0) {
require 'app.php';
} else {
// When on regular beestat.io, delete these cookies.
setcookie(
'session_key',
'',
time() - 86400,
'/',
'',
true,
true
);
setcookie(
'session_user_id',
'',
time() - 86400,
'/',
'',
true,
true
);
require 'www.php';
}