0
0

added session cookie lifetime, modified installer accordingly

This commit is contained in:
Bryan Pedini 2019-07-19 10:34:30 +02:00
parent 68884270f3
commit 89488cab2a
No known key found for this signature in database
GPG Key ID: F59032DC40EB11E0
2 changed files with 2 additions and 0 deletions

View File

@ -12,6 +12,7 @@
}
require_once ( 'functions.php' );
$config = load_config ( );
session_set_cookie_params ( 43200, $config [ 'installation_path' ], $config [ 'domain' ], true );
if ( isset ( $request_uri [ 0 ] ) && $request_uri [ 0 ] != "" ) {
switch ( $request_uri [ 0 ] ) {
case "go":

View File

@ -14,6 +14,7 @@
'name' => $_POST [ 'db_name' ],
],
'installation_path' => substr ( $_SERVER [ 'SCRIPT_NAME' ], 0, -10 ),
'domain' => $_SERVER [ 'HTTP_HOST' ],
];
file_put_contents ( 'config.json', json_encode ( $config ) );
try {