I got several Laravel 5 projects running on subfolders, on the same domain.
Each Laravel application is generating it\'s own session cookie, and sometimes it generat
Each Laravel installation should be located in its own directory.
Then an alias needs to be defined which points the domain sub-folder to the "child" Laravel folder.
Example in Apache http.conf
:
ServerName some.domain
## Path to laravel domain
DocumentRoot "/path/to/some/domain/laravel-1/public"
AllowOverride All
## Path to laravel sub-folder
Alias /laravel-2-path-alias/ "/path/to/some/domain/laravel-2/public"
AllowOverride All
For session cookies, check config\session.php
in both installations.
Root installation config\session.php
:
'cookie' => 'a_unique_name'
'path' => '/',
Subfolder installation config\session.php
:
'cookie' => 'another_unique_name'
'path' => '/path/to/sub/folder',
This should ensure that each installation is writing its own unique session cookies. Any cookies generated by the sub application should not interfere with those of the parent.