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.

Re-Login Required when clicking custom CP Menu Items

August 03, 2011 12:02pm

Subscribe [4]
  • #1 / Aug 03, 2011 12:02pm

    Michael Witwicki

    115 posts

    Just started noticing this with my most recent install v2.2.2 - but it may have been happening before.

    When I create a new CP Menu item it works fine while I am logged in for the session used to create the item. However, as soon as I log out, and then log back in, clicking the link in my menu requires a re-login.

    I think this is because the Menu item is created containing the session variable in the query string. So clicking the menu link is probably creating a conflict once that session is terminated.

    Anyone else experiencing this?

    Michael

  • #2 / Aug 04, 2011 2:06am

    John Henry Donovan

    12339 posts

    Michael,

    You may also have a dynamic IP which changes frequently.

    Can you set your Control Panel Session Type to just Cookies Only

    Admin > Security and Privacy > Security and Sessions

    resave your menu items after that and you shouldn’t hopefully have any more issue

  • #3 / Aug 04, 2011 10:00am

    Michael Witwicki

    115 posts

    Hey John!

    I gave that a shot, but am having the same issue. Thanks so much for the response.

    Michael

  • #4 / Aug 05, 2011 12:38pm

    Kevin Smith

    4784 posts

    Hi Michael,

    Hmm… I see what you’re talking about with the different session IDs in the URL. I see those too, but the system still doesn’t log me out when I click on the Quick Tabs at the top, so those don’t appear to be the problem. Could you post back here a screenshot of your settings screen at Security and Session Preferences?

    Other questions: What kind of hosting are you on? (Shared, VPS, Dedicated, etc…) Does this behavior change when you globally disable extensions?

  • #5 / Aug 08, 2011 4:43pm

    Michael Witwicki

    115 posts

    Hey Kevin!

    I think my issue might be related to another problem I am having.

    Since installing 2.2.2 I am having CP redirect loop problems. I’ve tried adding this into my config file:

    $config['cookie_domain'] = "";
    $config['cookie_path'] = "";
    $config['cookie_prefix'] = "";
    $config['admin_session_type'] = "c";
    $config['user_session_type'] = "c";
    $config['require_ip_for_login'] = "n";
    $config['require_ip_for_posting'] = "n"; 
    $config['secure_forms'] = "n";

    which I found in another thread. When this is the case, I can log in using Firefox, but get redirected to login on Safari and Chrome.

    When I set:

    $config[‘admin_session_type’] = “s”;

    I can log in with ALL browsers, but that is when I get the issue with the custom nav items breaking due to the session id. Which makes sense.

    I guess maybe I should try to solve problem A rather than problem B. Any ideas?

    Thanks as per usual for all your help.

    MW

  • #6 / Aug 09, 2011 6:17pm

    Kevin Smith

    4784 posts

    Hmm… instead, try this for your session type. Let me know what the behavior is then:

    $config['admin_session_type'] = "cs";
  • #7 / Aug 09, 2011 6:26pm

    Michael Witwicki

    115 posts

    Hey Kevin!

    Just tried it and I get the redirected login.

    Thanks for all your help,

    Michael

  • #8 / Aug 10, 2011 5:15pm

    Kevin Smith

    4784 posts

    Hey Mike,

    Since I’m not able to replicate this on my end, I’m going to get in there and see what’s happening. Be on the lookout for an email from me.

  • #9 / Aug 10, 2011 5:19pm

    Michael Witwicki

    115 posts

    Thanks Kevin, completing the form now!

  • #10 / Aug 15, 2011 4:46pm

    Kevin Smith

    4784 posts

    Hi Michael,

    I’m not yet able to narrow down what’s happening here. I do notice, though, that you have several different sites on this server. Can you replicate this issue on any other site on your server? That’ll help us get closer to a resolution on this.

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

ExpressionEngine News!

#eecms, #events, #releases