Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted July 15, 20204 yr According to the official documentation, it is allowed to make several test facilities in localhost, separated in different subdirectories. This implies modifying the default settings of the cookies so that they do not conflict. The Invision Community documentation says that this can be done through the "constants.php" file I need to test two installations on localhost: https://localhost/test1/ https://localhost/test2/ The parameters that I must introduce in "constants.php", I believe that they are the following ones: -for localhost/test1: define( 'COOKIE_DOMAIN', 'localhost' ); define( 'COOKIE_PREFIX', 'test1_' ); define( 'COOKIE_PATH', '/' ); -for localhost/test2: define( 'COOKIE_DOMAIN', 'localhost' ); define( 'COOKIE_PREFIX', 'test2_' ); define( 'COOKIE_PATH', '/' ); My question is whether the third parameter should be a) localhost/test1: define( 'COOKIE_PATH', '/test1' ); b) localhost/test2: define( 'COOKIE_PATH', '/test2' );
July 15, 20204 yr You only really need the 'COOKIE_PREFIX' constant to prevent conflicts, you will probably need a trailing slash on the cookie_path however, so /test1/
July 15, 20204 yr Author Then specifying a different cookie prefix in each subdirectory is enough. Okay, better not to get too complicated. But it is also worth knowing about the slash at the end, if you want to specify the cookie path.