Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Josip 195 posts 662 karma points c-trib
    Jan 24, 2023 @ 20:07
    Josip
    0

    member is logged-out on language switch

    I have a weird issue on production.

    When a member login and switch language he gets logged out, but if he login again and switch language again, then all works fine.

    On my local machine, I don't have that issue.

    I am using Umbraco 8.18.5

  • Huw Reddick 1932 posts 6722 karma points MVP 2x c-trib
    Jan 25, 2023 @ 12:06
    Huw Reddick
    0

    how are you/they switching language?

  • Josip 195 posts 662 karma points c-trib
    Jan 25, 2023 @ 12:18
    Josip
    0
     @foreach (var (culture, infos) in Model.Root().Cultures)
                                    {
                                        <a class="dropdown-item py-0 px-2" href="@(Model.Url(culture) + Request.Url.Query)"><span class="flag-results"><span class="fflag  @infos.Culture ff-sm"></span></span>&nbsp;@(infos.Culture == "de-de" ? "DE" : "EN")</a>
                                    }
    

    Basicaly if url is example.com/de and i manualy change url to example.com/en without using language switcher in navigation i would be logged-out, so i think its not the problem in this part of the code, also it works normaly on my local machine.

  • Huw Reddick 1932 posts 6722 karma points MVP 2x c-trib
    Jan 25, 2023 @ 12:35
    Huw Reddick
    0

    I can't think of anything that should cause users to be logged out, but I will do some testing myself to see if I can replicate your issue

  • Josip 195 posts 662 karma points c-trib
    Jan 25, 2023 @ 12:57
    Josip
    0

    Aditional information: I have one more project where i use same logic and its hosted on same server and i dont have this issue on that site.

    Maybe there is problem with some configuration file but i dont know where to look.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies