Support

UNiTE, Remote CLI, eXtract Wizard

#3668 User redicted to old site when login from front page

Posted in ‘UNiTE and Remote CLI’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

PHP version
n/a
Tool
UNiTE
Tool version
n/a

Latest post by nicholas on Monday, 20 September 2010 10:48 CDT

user14183
I'm so confused... I cloned a site because needed the same structure and same users on a different site -- let's call them site1.com and site2.com with site2.com being the clone. I did the backup and reinstallation on the same server, but different domain names. I did all that was necessary: created a new database for the site2.com, ensured that the live site variable points to site2.com. Everything is fine. I am able to login on the backend and make changes that only affects site2.com and not site1.com.

Here's the problem: when I login on the frontend of site2.com either as a user or administrator, I am redirected to site1.com saying that "Welcome, you have successfully logged in". Pressing the back button, I find that I am also logged in on the frontend of site2.com. Thus, logging in from the frontend of site2.com also logs me in to site1.com. How do I make these two sites completely independent of each other?

I've looked at the .htaccess file, configuration.php, sef plugins to make sure that no mention of site1.com is there, and that the database points to the database I created for site2.com. All seems fine, but still it redirects/logs me in to both sites.

Any thoughts?

Thank you!!!!

user14183
Additional observation: I can login to the frontend as a user and make changes to site2.com without site1.com being affected. Apparently, it's just the login that's being shared by both sites.

nicholas
Akeeba Staff
Manager
You can't be logged in both site's with the same server-side action, for the simple technical reason that you need two cookies with two different domains set. If you are logged in as the same user at the same time on both sites, it's because you are logged in on the two sites independently.

Your real issue is that the login modules performs an invisible redirection to site1.com upon successful login. Go to your site2.com's module manager and edit the login module. Find the redirection for login and logout. Replace site1.com with site2.com in those URLs. Bingo!

( Note: Stupid me had the same issue when I transferred this live site to local. After figuring out what I did wrong I banged my head on the wall. :p )

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!