2021-06-12 09:29:10 -04:00
|
|
|
<?php
|
|
|
|
/*
|
|
|
|
* Copyright (C) 2018 josh.north@point808.com
|
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
2021-08-11 10:54:25 -04:00
|
|
|
ini_set('session.gc_maxlifetime', 24*60*60); // MIN SESSION
|
|
|
|
ini_set('session.gc_probability', 1); // GC RATES
|
|
|
|
ini_set('session.gc_divisor', 100); // TIMES
|
|
|
|
ini_set('session.use_cookies', '1');
|
|
|
|
ini_set('session.use_only_cookies', '1');
|
|
|
|
ini_set('session.cookie_lifetime', '0');
|
2021-10-18 10:38:41 -04:00
|
|
|
ini_set('session.cookie_secure', '1');
|
2021-10-15 20:13:39 -04:00
|
|
|
ini_set('session.cookie_httponly', '1');
|
2021-10-15 21:00:27 -04:00
|
|
|
ini_set('session.cookie_samesite', 'Strict');
|