Closed mdmoura closed 9 years ago
I would set the cookie value on the culture selected callback function from the filter.
We discussed something similiar here: https://github.com/Dresel/RouteLocalization/issues/19#issuecomment-55503337.
Thanks! That worked really fine.
I was searching for it on Docs, source and issues but wasn't able to find it.
Thank you once again, Miguel
Hello,
I have the following on Route localization setup:
Inside the GetCulture I have the following:
This works fine but when the user later accesses the site the culture is again the default one.
I would like to save a cookie with the user choice and the next time the user accesses the web site the previous chosen culture would be used. I tried the following:
However, when I change the culture the Cookie value does not change.
I am not sure how to update the cookie value when the culture is changed.
What should be the best way to do this?
Thank You