Invision Community 5: A video walkthrough creating a custom theme and homepage By Matt Thursday at 04:02 PM
anon2020 Posted July 15, 2020 Posted July 15, 2020 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' );
Stuart Silvester Posted July 15, 2020 Posted July 15, 2020 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/ anon2020 and bfarber 2
bfarber Posted July 15, 2020 Posted July 15, 2020 I rarely set a cookie_path tbh. The prefix is enough as Stuart said. anon2020 1
anon2020 Posted July 15, 2020 Author Posted July 15, 2020 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.
Recommended Posts