• Hi everyone,

    I’m having a strange session bug on a new project.

    Here are the steps:
    1. Visit http://cards.byhero.io/your-story/
    1. Fill your firstname on the card on the left
    2. Click on ORDER
    3. Login with test@test.com / testtest and confirm.
    4. When on the cart page, click on the top “CARDS” logo to go back to the homepage.

    At this stage, the top menu is showing “LOG IN – REGISTER” as if you were not logged in.
    If you refresh the page, it’s changing for “SIGN OUT” (normal display when logged in).

    Does anyone know have a clue why?

    Many thanks for your help.

    TheMoutch

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor etoilewebdesign

    (@etoilewebdesign)

    Hi Moutch,

    It looks like your site may have some kind of JavaScript animation/transition or other functionality applied to certain page loads. It’s almost as if the cart page just kind of transitions back into the homepage when you click the “CARDS” logo, instead of doing a full new page load. This would certainly explain why it doesn’t say “sign out” because the page hasn’t really refreshed.

    Do you know if there is something like this on your site?

    Thread Starter themoutch

    (@themoutch)

    Hi EtoileWebDesign,

    Many thanks for your message. I think what you suggested was clearly possible but I double-checked and couldn’t find anything doing some page transition without a page reload. Is there something else you would think of?

    Many thanks.

    TheMoutch.

    Plugin Contributor etoilewebdesign

    (@etoilewebdesign)

    Hi Moutch,

    Thank you for following up and checking that. It’s strange because, even if you do the first 3 steps as you describe above to get to the cart page, and then you type http://cards.byhero.io/your-story/ in the address bar and press Enter, it still shows “log in” and not “sign out”. You would think that doing it this way would bypass any kind of transition or animation happening.

    If you look at cookies in the developer console, you’ll see that, even when you go back to the first page and it still says “log in”, the cookie indicating that you are logged in is there:

    How are you generating that menu item?

    Thread Starter themoutch

    (@themoutch)

    Hi and thank you for investigating that with me. The menu is simple HTML using the test:
    <?php if ($FEUP->Is_Logged_In()): ?> to figure out if the user is logged in.

    Another strange behaviour that I would imagine being related:
    1. Visit http://cards.byhero.io/your-story/
    1. Fill your firstname on the card on the left
    2. Click on LOG IN – REGISTER
    3. Login with test@test.com / testtest and confirm.
    4. When back on http://cards.byhero.io/your-story/ click on SIGN OUT. You’ll see nothing changes unless you refresh the page after that.

    Many thanks once again.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Strange session / cookie issue’ is closed to new replies.