amc
Posts: 22
|
Posted: 07/01/2013, 6:21 PM |
|
Hi,
I want to have several instances of the same site. All of them are in the same server but each one has its own subdomain, its own directory and its own database.
I don't want to publish every instance using CSS because it's a slow process...
I tried to publish once and copy all the files to the other site's directories. I also changed the connection parameters in the file Common.php. It almost works. I can access to the database and to the public pages but I'm not able to do login. The login page (CCLoginUser function) always return false.
What else should I change for each instance?
Thanks
|
|
|
amc
Posts: 22
|
Posted: 07/02/2013, 2:26 PM |
|
It was only necessary to change the Common.php....
I couldn't do login, because I had a problem with on of the Views of the database.
Sorry
|
|
|
DataDoIT
|
Posted: 07/03/2013, 1:07 AM |
|
Maybe you're already aware.... If a person logs into one of your sites,
they'll be logged into all of your sites.
|
|
|
amc
Posts: 22
|
Posted: 07/03/2013, 9:57 AM |
|
Thanks for pointing that but I don't think so. The sites has different subdomains, in consequence, the sessions are distinct.
|
|
|
DataDoIT
|
Posted: 07/03/2013, 12:14 PM |
|
Just to verify, open up one of your sites in your browser and log into
it. Then, open a new tab (not another browser session) and open a
second site and go to a protected area to make sure you're not logged in.
|
|
|
Lucius
Posts: 220
|
Posted: 07/03/2013, 3:53 PM |
|
Even if your sessions are distinct, the session variables used on the server are the same. They are called the same.
Do a simple test apart from DataDoIT recommended.
Log into site 1 with a valid user.
Logout in site 2 using the same browser.
Try to access some restricted part (for logged users) in site 1.
The result should be that you are logged out in both site 1, site 2 (and any other sites that share the same config file) if you use the same browser.
|
|
|
amc
Posts: 22
|
Posted: 07/03/2013, 4:22 PM |
|
Hi,
I tried both cases and everything works fine (all the sites are working independently) ... I don't know enough to guess why is it working if it shouldn't...
|
|
|
laneoc
Posts: 154
|
Posted: 07/03/2013, 5:40 PM |
|
I've developed my own approach to this, but I'm interested in other ideas.
_________________
Lane |
|
|