mirror of
https://github.com/SuiteCRM/SuiteCRM-Core.git
synced 2025-08-29 01:10:42 +08:00
Clear cookies before install
This commit is contained in:
parent
281f9db442
commit
f795ca4ad0
1 changed files with 7 additions and 0 deletions
|
@ -42,6 +42,13 @@ use App\Install\Service\InstallPreChecks;
|
|||
use Monolog\Handler\StreamHandler;
|
||||
use Monolog\Logger;
|
||||
|
||||
// clear cookies
|
||||
$past = time() - 3600;
|
||||
foreach ( $_COOKIE as $key => $value )
|
||||
{
|
||||
setcookie( $key, $value, $past, '/' );
|
||||
}
|
||||
|
||||
require __DIR__ . '/../config/bootstrap.php';
|
||||
require __DIR__ . '/../vendor/autoload.php';
|
||||
if (!is_writable('../logs')) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue