Announcement Announcement Module
Collapse
No announcement yet.
cookies and custom CookieLocaleResolver Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • cookies and custom CookieLocaleResolver

    Hello,

    I'm writing a custom CookieLocaleResolver and I have a small problem when retrieving cookies. The reason for the custom CookieLocaleResolver is the following: we are using a spring web application together with a CMS system. The latter creates a locale cookie which we wish to use/detect in our spring application. Can anybody tell if it is possible to retrieve this cookie and if so how I can do this?

    The following code seems not be working:
    Code:
    Cookie domainLocaleCookieObj =
                WebUtils.getCookie(
                    request, cookieName
                );
    Thank you
    Kind regards
    Jan

  • #2
    Ok you can drop my question here. The "CMS cookie" wasn't passed with the request as I was running my application on the "localhost", hence the host of my cookies were "localhost". The "CMS cookie" on the other side had a different host value. Stupid me.

    Regards
    Jan

    Comment

    Working...
    X