Cookie is not getting updated in IIS hosted ASP.NET MVC app

thunder12 41 Reputation points
2023-06-10T20:43:00.0466667+00:00

In our ASP.NET MVC app hosted on IIS, we face an issue where the cookie is not getting overwritten when the user switches culture.

However, interestingly, when we debug the app using IIS Express, the cookie works fine.

We're curious about the possible reasons behind this discrepancy. Can anyone shed some light on this?

Windows development | Internet Information Services
Developer technologies | ASP.NET | Other
{count} votes

2 answers

Sort by: Most helpful
  1. Bruce (SqlWork.com) 77,851 Reputation points Volunteer Moderator
    2023-06-12T01:21:19.42+00:00

    use the browser debug tools. also check if the request is cached, so the cookie is not sent.

    0 comments No comments

  2. Anonymous
    2023-06-13T08:03:12.5933333+00:00

    Hi @thunder12,

    I referred to this article and created a simple example, I published it on my local IIS and it seems to work fine. Can you provide more details?

    Result

    Best regards,

    Xudong Peng


    If the answer is the right solution, please click "Accept Answer" and kindly upvote. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.