[solved] Problem logging in to admin panel

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
atombong
New Member
New Member
Posts: 4
Joined: Sat Apr 12, 2008 9:00 pm

[solved] Problem logging in to admin panel

Post by atombong »

Hi there,

I'm having a strange issue.  I have two installations of CMSMS under one domain  - English under /en and French under /fr.  Everything's been running smoothly for the last few months, but suddenly my client and I are unable to log in to the English admin panel. There is no error message, it just reloads the login page.  Strange thing is, the French admin panel is still working fine!  I've read several threads here which describe a similar login issue, and they all seem to deal with cookie handling; however, why would one of these installations be working and the other one not? I've tried a couple of the fixes described in other threads, but nothing has worked yet. 

The web host says they can't see anything wrong; I don't have full access to the server to look at error logs, etc.  Any suggestions would be appreciated!
Last edited by atombong on Tue May 27, 2008 11:43 pm, edited 1 time in total.
atombong
New Member
New Member
Posts: 4
Joined: Sat Apr 12, 2008 9:00 pm

Re: Problem logging in to admin panel

Post by atombong »

This leads me to believe it is cookie-related: when I attempt to log in to the English site, my browser receives two cookies; a session id and cms_language.  When I log in (successfully) to the French site, my browser receives four cookies; the first two plus user and passhash cookies.  Hopefully this helps troubleshoot...
Pierre M.

Re: Problem logging in to admin panel

Post by Pierre M. »

Yes, as there is only one domain, each install's cookie is overwriting the other because the cookie name is the same (and the domain the same).
I suggest you hack the cookies' names to prefix them with an install tag : fr or en.
Patch welcome from anybody.

Pierre M.
atombong
New Member
New Member
Posts: 4
Joined: Sat Apr 12, 2008 9:00 pm

Re: Problem logging in to admin panel

Post by atombong »

Hmmmm... any advice on how to do that would be great - I'm no code monkey!  Strange that the login for both sites has been working fine for several months and now it's not though...
atombong
New Member
New Member
Posts: 4
Joined: Sat Apr 12, 2008 9:00 pm

Re: [solved] Problem logging in to admin panel

Post by atombong »

Well, a rather easy fix after all that, although I still don't know what was causing the problem!  I just grabbed the login.php file from the French site and stuck it in the English one, and I'm now able to log in again.  Not very satisfying, but at least it's working!
Post Reply

Return to “CMSMS Core”