diff --git a/index.php b/index.php index 56c4e73..250194b 100644 --- a/index.php +++ b/index.php @@ -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'; }