(03-14-2018, 01:18 AM)VortecCPI Wrote: This may not be a webERP issue but I figured I'd ask...
...
Both sites are hosted on the same ClearOS server.
Both apps hosted simultaneously on the same server are very likely using the
SAME default session name reference.
(in this case PHPSESSID, or whatever is set within php.ini as the session.name)
In session.php, try this for a test:
(around line 37, note the last two comments in this example)
PHP Code:
session_write_close(); //in case a previous session is not closed
ini_set('session.cookie_httponly',1); // you might not yet have this line
session_name('PHPSESSIDERP'); // add this line, only appends 'ERP'
session_start();
Then, log out of both apps, login to each, and I
believe that the apps should retain independent sessions.
However, I don't know if this name will be specifically be kept for webERP (as this situation would likely be a corner-case for many), and I'd have to confer with others.
You can also check the cookies in the browser's debugger to verify that both names appear (PHPSESSID, PHPSESSIDERP) after having logged-in to both apps after the change.