cookie path subdomain
This commit is contained in:
@@ -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']);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user