added session cookie lifetime, modified installer accordingly
This commit is contained in:
parent
68884270f3
commit
89488cab2a
@ -12,6 +12,7 @@
|
|||||||
}
|
}
|
||||||
require_once ( 'functions.php' );
|
require_once ( 'functions.php' );
|
||||||
$config = load_config ( );
|
$config = load_config ( );
|
||||||
|
session_set_cookie_params ( 43200, $config [ 'installation_path' ], $config [ 'domain' ], true );
|
||||||
if ( isset ( $request_uri [ 0 ] ) && $request_uri [ 0 ] != "" ) {
|
if ( isset ( $request_uri [ 0 ] ) && $request_uri [ 0 ] != "" ) {
|
||||||
switch ( $request_uri [ 0 ] ) {
|
switch ( $request_uri [ 0 ] ) {
|
||||||
case "go":
|
case "go":
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
'name' => $_POST [ 'db_name' ],
|
'name' => $_POST [ 'db_name' ],
|
||||||
],
|
],
|
||||||
'installation_path' => substr ( $_SERVER [ 'SCRIPT_NAME' ], 0, -10 ),
|
'installation_path' => substr ( $_SERVER [ 'SCRIPT_NAME' ], 0, -10 ),
|
||||||
|
'domain' => $_SERVER [ 'HTTP_HOST' ],
|
||||||
];
|
];
|
||||||
file_put_contents ( 'config.json', json_encode ( $config ) );
|
file_put_contents ( 'config.json', json_encode ( $config ) );
|
||||||
try {
|
try {
|
||||||
|
Reference in New Issue
Block a user