Vinay, I got your PM—a very nice site, and you can’t ask for a more prominent client.
The subdirectory site is I can now see designed as above - you are operating EE as a part of a larger non-EE site, from the subdirectory.
For us to help you with suggestions, I think you have to answer clearly, so we understand more of the situation. That’s because there are many possibilities.
- Because the EE site is highly developed, the CP has to have let you log in before. But was this only on a test or development server?
- In other words, have you ever seen the CP work on the deployment server you are showing me, and did it then stop letting you log in, later? Or has it _never_ let you log in to the CP on this public deployment server?
- If you could log in only on a development server, but never on this deployment server, then I think the path and cookie issues we are showing you are likely to be where something is incorrect—or there is a general site issue as I will explain below.
- However, if you could at first successfully log in to the CP on this customer deployment server, and then suddenly could not log in, something in the environment has to be found, that has changed. This could be in your EE settings, but also could be in the server.
- What is causing the problem, either way, might not be in your direct control. For example, what if something in the customer deployment server prevented EE from setting cookies, perhaps as part of a security system, or a change in it?
Then cookie-based login to the CP would not be possible - in fact you would continue to get the login screen because the authentication cookie was never received by the browser to be sent back.
- in fact, when I use the URL you gave me for the EE section of the site, I can see no EE cookies being set, only ones from the main customer site, and from s7.addthis.com, which I think is a social media add-on site.
I believe I should see at least 3 cookies from EE, to record last activity, last visit, etc., from the EE front end, but I don’t. This leads me to believe that the customer server arrangement may be preventing EE’s cookie functions. Cookies as you probably know are a matter of HTTP headers, and a firewall might be preventing some. Or possibly the content I see doesn’t come from EE at all, even in that special ‘directory’ area, because of a setup mistake; though in that case you probably wouldn’t see a CP login either.
Vinay, you can look at these things, and it’s very late here, so we can hear from you afterwards.
One thing you might try, to bypass cookie issues, is to tell the CP to authenticate only by session_id, and not use cookies at all. For that, as I think you may know, you would set as follows, with the session type as “s” for session_id instead of “c” for cookie:
$config['admin_session_type'] = "s";
$config['cookie_domain'] = ""; /* or later ".site.com.sg" as you showed me, but no www */
$config['cookie_path'] = "";
$config['cookie_prefix'] = "";
Again, good fortune on seeing the issue here. If you have a development server where things work, you can identify the cookies that should be present.
Regards,
Clive