Jump to content

Recommended Posts

Posted

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

Posted

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.

 

 

  • Recently Browsing   0 members

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