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.

If super admin is logged not recognised in IE8? Probs with sessions?

March 26, 2010 8:35pm

Subscribe [7]
  • #1 / Mar 26, 2010 8:35pm

    deckard97

    137 posts

    Hi,

    having an odd bug here but (so far) only experienced on a client’s Internet Explorer 8. All’s fine in my Safari.

    I’m using this code to display an Admin console with extra links only for 2 member group types:

    {if member_group == '1' OR member_group == '8'}
    {/if}

    But in IE8, today showing it up to the client in its environment, this code does nothing.

    It’s heavily used around the site so obviously nothing was showing up as planned.

    Now back at home I can test in IE7 and Chrome in Windows and everything is fine so I’m looking for some clues as to what could be going on.

    Thanks.

  • #2 / Mar 26, 2010 9:01pm

    Brandon Jones

    5500 posts

    Hi deckard97,

    I would suggest adding some debugging code to display the value of member_group.  If he wasn’t actually logged in with his browser for whatever reason (not accepting cookies, etc) then his member_group would not meet either of those tests.

  • #3 / Mar 27, 2010 3:12pm

    deckard97

    137 posts

    Thanks Brandon,

    I’m not super familiar with IE on Windows but I did set it so that it would accept ALL cookies from that particular website so unless there’s something else to tell IE8 about it’s un-securities, I don’t think that would be it.

    Unfortunately, I can’t go back there to test in their environment for a few days. Hopefully by then someone can chime in about similar issues they’ve experienced.

  • #4 / Mar 27, 2010 5:16pm

    Greg Salt

    3988 posts

    Hi deckard97,

    I’m not aware of any reason why this wouldn’t work. I would recommend creating a simple test template with one set of these conditionals on and make sure that it works on its own without any other template code in the way.

    Cheers

    Greg

  • #5 / Mar 28, 2010 1:04am

    deckard97

    137 posts

    All right I’ll start with that and report back. Thanks.

  • #6 / Mar 28, 2010 3:06pm

    Greg Salt

    3988 posts

    Hi deckard97,

    Okay, I’ll keep this thread open. Please report back when you’ve had a chance to test it.

    Cheers

    Greg

  • #7 / Mar 31, 2010 1:05pm

    deckard97

    137 posts

    After further investigation it appears that opening a new tab in IE8 does not keep the current active session from a previous tab.

    For example, If I login to EE, then open a new tab and try to access a template with content for logged_in members this content will not show up, but if I use the same tab where I logged into EE, the logged_in content will be displayed.

    This seems like a stock IE8 install. Maybe someone can corroborate this?

    Thanks.

  • #8 / Mar 31, 2010 4:58pm

    Ingmar

    29245 posts

    I am not very familiar with IE8, but that sounds entirely possible. Are you using cookies and/or session_ids for authentication purposes?

  • #9 / Mar 31, 2010 5:00pm

    deckard97

    137 posts

    User session type is cookies only, control panel is cookies + session ID.

    Had problems with CSS when User session was also with session ID.

  • #10 / Mar 31, 2010 5:04pm

    Ingmar

    29245 posts

    Try using cookies only for everything.

  • #11 / Mar 31, 2010 5:08pm

    deckard97

    137 posts

    I will and report back.

  • #12 / Mar 31, 2010 5:17pm

    Ingmar

    29245 posts

    Sounds good. We’ll be here.

  • #13 / Mar 31, 2010 8:11pm

    Mark Bowen

    12637 posts

    Make sure if you are using www in the control panel URL that you use www in the site URL too and vice versa. When you said that you don’t have the problem if you use the tab that has the already logged-in control panel it made me think that perhaps you have the URLs slightly different between the two?

    Hope you get it sorted soon.

    Best wishes,

    Mark

  • #14 / Apr 01, 2010 1:23am

    John Henry Donovan

    12339 posts

    deckard97,

    I cannot replicate on IE8

    My settings for Control Panel Session Type  are Cookies & Sessions and for User Session Type  are cookies.

    I tried your conditional with the default member group first and my content display fine in new tab and duplicated tab. I then switched the member into a new member group and updated the template to reflect this and straight away after a refresh in IE it was also picked up.

    It may be as Mark suggest also.

    In your Internet options go to the Security tab and set a default level for each zone. Then in the Privacy tab set the Internet zone slider settings to Medium. Restart browser and try again.

  • #15 / Apr 08, 2010 1:10pm

    deckard97

    137 posts

    @ Mark Bowen I checked the URL for the site and control panel and neither have WWW, so it’s the same URL but good try.

    @John Henry Donovan I can’t test this at home but when I’ll go back to the client’s office I’ll try the security settings you mention but since it’s a stock IE8 install I believe it’s already set that way.

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

ExpressionEngine News!

#eecms, #events, #releases