cookie path subdomain

This commit is contained in:
Tim Bendt
2025-11-26 11:34:36 -05:00
parent 3293172e5d
commit a435f3612b

View File

@@ -354,12 +354,13 @@ $config['sess_time_to_update'] = 28800;
| |
*/ */
$config['cookie_prefix'] = ""; $config['cookie_prefix'] = "";
$config['cookie_domain'] = ""; $config['cookie_domain'] = ""; // or '.pancake.bendtstudio.com' if you prefer
$config['cookie_path'] = isset($_SERVER['HTTP_HOST']) ? str_ireplace(array('http://'.$_SERVER['HTTP_HOST'], 'https://'.$_SERVER['HTTP_HOST']), '', BASE_URL) : "/"; $config['cookie_path'] = "/"; // always root on this domain
$config['cookie_path'] = preg_replace('/\/+/', '/', $config['cookie_path']); // $config['cookie_path'] = isset($_SERVER['HTTP_HOST']) ? str_ireplace(array('http://'.$_SERVER['HTTP_HOST'], 'https://'.$_SERVER['HTTP_HOST']), '', BASE_URL) : "/";
// $config['cookie_path'] = preg_replace('/\/+/', '/', $config['cookie_path']);
# Fixes an issue where the cookie path would include the server port. # Fixes an issue where the cookie path would include the server port.
$config['cookie_path'] = preg_replace('/^:\d+\//', '/', $config['cookie_path']); // $config['cookie_path'] = preg_replace('/^:\d+\//', '/', $config['cookie_path']);
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------