{"action":"created","issue":{"url":"https://api.github.com/repos/aspnetboilerplate/aspnetboilerplate/issues/3600","repository_url":"https://api.github.com/repos/aspnetboilerplate/aspnetboilerplate","labels_url":"https://api.github.com/repos/aspnetboilerplate/aspnetboilerplate/issues/3600/labels{/name}","comments_url":"https://api.github.com/repos/aspnetboilerplate/aspnetboilerplate/issues/3600/comments","events_url":"https://api.github.com/repos/aspnetboilerplate/aspnetboilerplate/issues/3600/events","html_url":"https://github.com/aspnetboilerplate/aspnetboilerplate/issues/3600","id":339385113,"node_id":"MDU6SXNzdWUzMzkzODUxMTM=","number":3600,"title":"ABP Localization does not change language on load balancer","user":{"login":"vinayrkmr","id":40994634,"node_id":"MDQ6VXNlcjQwOTk0NjM0","avatar_url":"https://avatars0.githubusercontent.com/u/40994634?v=4","gravatar_id":"","url":"https://api.github.com/users/vinayrkmr","html_url":"https://github.com/vinayrkmr","followers_url":"https://api.github.com/users/vinayrkmr/followers","following_url":"https://api.github.com/users/vinayrkmr/following{/other_user}","gists_url":"https://api.github.com/users/vinayrkmr/gists{/gist_id}","starred_url":"https://api.github.com/users/vinayrkmr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vinayrkmr/subscriptions","organizations_url":"https://api.github.com/users/vinayrkmr/orgs","repos_url":"https://api.github.com/users/vinayrkmr/repos","events_url":"https://api.github.com/users/vinayrkmr/events{/privacy}","received_events_url":"https://api.github.com/users/vinayrkmr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-07-09T10:05:32Z","updated_at":"2018-07-10T07:50:05Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\nABP localization option does not seem to take effect on load balancer. It works perfectly on a single server without any load balancing set for it.\r\n\r\nWhen we dig deep into the request and response options using google chrome developer, we see 2 cookies set one for english and other one for the requested language.\r\n\r\nEnglish cookie seems to override the change of language and the text appears without any change.\r\n\r\nPlease let us know if there are any specific changes that need to be done so that english cookie can be cleared before changing language.\r\n\r\n<package id=\"Abp.Web\" version=\"2.3.0\" targetFramework=\"net461\" />\r\n\r\nABP info:\r\n\r\n* Your Abp package version. - 2.3.0\r\n* Your base framework: .Net Framework or .Net Core. - 4.6.2\r\n* Exception message and stack trace if available. - NA\r\n* Steps needed to reproduce the problem.\r\n\r\nThanks\r\nVinay\r\n"},"comment":{"url":"https://api.github.com/repos/aspnetboilerplate/aspnetboilerplate/issues/comments/403732968","html_url":"https://github.com/aspnetboilerplate/aspnetboilerplate/issues/3600#issuecomment-403732968","issue_url":"https://api.github.com/repos/aspnetboilerplate/aspnetboilerplate/issues/3600","id":403732968,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMzczMjk2OA==","user":{"login":"vinayrkmr","id":40994634,"node_id":"MDQ6VXNlcjQwOTk0NjM0","avatar_url":"https://avatars0.githubusercontent.com/u/40994634?v=4","gravatar_id":"","url":"https://api.github.com/users/vinayrkmr","html_url":"https://github.com/vinayrkmr","followers_url":"https://api.github.com/users/vinayrkmr/followers","following_url":"https://api.github.com/users/vinayrkmr/following{/other_user}","gists_url":"https://api.github.com/users/vinayrkmr/gists{/gist_id}","starred_url":"https://api.github.com/users/vinayrkmr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vinayrkmr/subscriptions","organizations_url":"https://api.github.com/users/vinayrkmr/orgs","repos_url":"https://api.github.com/users/vinayrkmr/repos","events_url":"https://api.github.com/users/vinayrkmr/events{/privacy}","received_events_url":"https://api.github.com/users/vinayrkmr/received_events","type":"User","site_admin":false},"created_at":"2018-07-10T07:50:05Z","updated_at":"2018-07-10T07:50:05Z","author_association":"NONE","body":"@ismcagdas I don't think either this is related to load balancer.\r\n![with-lb](https://user-images.githubusercontent.com/40994634/42495843-cdcc9c92-8413-11e8-8104-4fd41331a97f.JPG)\r\n![without-lb](https://user-images.githubusercontent.com/40994634/42496404-73b0d474-8415-11e8-92c4-9f4c569b0ec0.JPG)\r\n\r\nI have attached 2 screen shots of the cookies captured one with load balancer and other without load balancer.\r\n\r\nIf you look at the load balancer screen shot, there are 2 cookies old one was not cleared.\r\n\r\nHowever, we have added the piece of code to clear cookies before setting it before changing language.\r\n\r\n`abp.utils.deleteCookie(abp.multiTenancy.tenantIdCookieName, abp.appPath);`\r\n\r\nAlso, on the single server the path of the cookie is set and there is no path set for load balancer.\r\n\r\nIs there a specific path that need to be set for Load balancer like FQDN?\r\n\r\nPlease let me know your thoughts"}}
{"actor":{"display_login":"vinayrkmr"}}