ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Have to login again to use custom top nav tabs

June 03, 2011 4:30pm

Subscribe [4]
  • #1 / Jun 03, 2011 4:30pm

    walpow

    133 posts

    After much tsuris, I finally got updated to 2.X. One small problem: I’ve added three buttons to the tabs/buttons at the top of the control panel. Whenever I click one of these, I have to log in again. It’s only one extra click, but it’s annoying and it shouldn’t happen, and it doesn’t happen on the other, brand-new site I’m working on.

    The three buttons go to the template manager, the main content editing page, and the add content page for one of my channels. They were working fine, but then (working with tech support) I did some renaming on my site to make a test directory into a production one, and they started requiring the login. I tried deleting and recreating the tabs, but it didn’t help. I looked for any settings still pointing to the old directory name, but couldn’t find any. I thought it might be a cookie issue, and it still might, but it’s acting the same way in Firefox, IE, Safari and Chrome, and I only did the pre-rename work in Firefox. Ideas?

  • #2 / Jun 04, 2011 2:08pm

    walpow

    133 posts

    Curiouser and curiouser ... I again deleted and recreated the tabs. I was in Firefox at the time. Now it works in Firefox - no additional login required - but still not in the other three browsers.

  • #3 / Jun 04, 2011 4:25pm

    Greg Salt

    3988 posts

    Hi walpow,

    Have you tried deleting all caches and cookies in IE, Safari and Chrome? It seems as if it might be browser-related since the tabs do work in Firefox.

    Cheers

    Greg

  • #4 / Jun 04, 2011 5:34pm

    walpow

    133 posts

    Clearing caches and cookies does not help. And now it’s not working in Firefox again.

  • #5 / Jun 06, 2011 6:49am

    John Henry Donovan

    12339 posts

    walpow,

    Can you try setting your Control Panel Session Type to Cookies only please and see if that helps
    Admin > Security and Privacy > Security and Sessions

    What are these tabs linking to?

  • #6 / Jun 06, 2011 11:01am

    walpow

    133 posts

    Can you try setting your Control Panel Session Type to Cookies only please and see if that helps

    It won’t let me. If I set it to Cookies Only (or to Cookies and Session ID, for that matter) and click Submit, when it comes back it’s back to Session ID only.

    What are these tabs linking to?

    Template manager; the main edit content page; the add content screen for a particular channel.

  • #7 / Jun 06, 2011 7:22pm

    Brandon Jones

    5500 posts

    If I set it to Cookies Only (or to Cookies and Session ID, for that matter) and click Submit, when it comes back it’s back to Session ID only.

    That means you’re manually setting admin_session_type from config.php. You can change that to Cookies Only like so:

    $config['admin_session_type'] = "c";

    Does that have any effect?

  • #8 / Jun 06, 2011 7:30pm

    walpow

    133 posts

    If I set that parameter to “c” I can’t login at all. It just goes back to the login screen.

  • #9 / Jun 07, 2011 11:06am

    walpow

    133 posts

    Last night, the above was the only problem. This morning, in Firefox (not in IE) I didn’t get the dropdowns when I clicked anything on the top nav bar, and when I tried to edit custom fields, only the top section (Custom Field Settings) appeared. It was missing the bottom section (Custom Field Options). As a test, I went into the control panel for my other site in Firefox, and the dropdowns appeared. (Couldn’t test custom fields because I don’t have any yet.)

    Clearing the cache fixed this problem, but I include the info in case the additional info helps.

  • #10 / Jun 07, 2011 4:07pm

    Kevin Smith

    4784 posts

    Hmm… this is odd indeed. Would it be possible for us to get access to this site, Nathan?

    Keep your eyes open for an email from me.

  • #11 / Jun 07, 2011 4:51pm

    walpow

    133 posts

    Kevin -

    You guys already have access to the site from the last drama. But I can resend the access info in response to your e-mail.

    Edit: Oops .... found your e-mail in my spam folder. Have responded with access details.

    N

  • #12 / Jun 07, 2011 5:55pm

    Brandon Jones

    5500 posts

    Hi walpow,

    For reference we do not retain login information any longer than necessary. In this case I took a look and created a few new top level buttons and they worked fine. Obviously I don’t have access to your particular user account, but it’d be worth looking at the links I created and comparing them to yours to see what the difference is. It sounds like it could be a cookie issue caused by a domain or subdomain (www) mismatch.

  • #13 / Jun 07, 2011 6:13pm

    walpow

    133 posts

    I logged on with the super admin ID I gave you guys, and the links you created required me to login again, duplicating the behavior I’ve been seeing with my own login. So I don’t think I’ll gain anything by comparing your links with mine.

    New links work when I first create them. If I close the browser and go right back into it, they work. But if I come back an hour later, they don’t. So please check the ones you created again and see what happens.

    It sounds like it could be a cookie issue caused by a domain or subdomain (www) mismatch.

    If that’s still a possibility after what I’ve said above, please be a bit more specific about what I ought to be looking at.

  • #14 / Jun 07, 2011 6:30pm

    Brandon Jones

    5500 posts

    Hi walpow,

    Curiously, they were still working for me. But then I noticed you had

    .expressionengine.com

    set for the Cookie Domain, which is definitely not correct. I set that to blank, which is typically fine for non-MSM installations. I suspect that will do the trick - can you confirm?

  • #15 / Jun 07, 2011 8:32pm

    walpow

    133 posts

    Nope, setting the cookie domain blank didn’t help. Nor did setting it to .fourstory.org, as suggested in the docs. Once again I was able to set the tabs in Firefox, close the browser, come back five or ten minutes later, and have them work. Went away for an hour, and they didn’t work. Same behavior as a few days ago. Most peculiar.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases