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:
parent
d60c5236fe
commit
48baf93f25
22
index.php
22
index.php
@ -22,5 +22,27 @@
|
|||||||
if(preg_match('/app\.beestat\.io/', $_SERVER['HTTP_HOST']) !== 0) {
|
if(preg_match('/app\.beestat\.io/', $_SERVER['HTTP_HOST']) !== 0) {
|
||||||
require 'app.php';
|
require 'app.php';
|
||||||
} else {
|
} 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';
|
require 'www.php';
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user