Results 1 to 2 of 2

Thread: cookies and custom CookieLocaleResolver

  1. #1

    Question 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. #2

    Default

    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

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •