Jump to content

Override the default cookie for test-install on localhost

Recommended Posts

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:

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' );

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...