Results 1 to 2 of 2

Thread: set cookie-domain with dm-server ?

  1. #1
    Join Date
    Oct 2008
    Posts
    25

    Default set cookie-domain with dm-server ?

    Hi all,

    i need to set a cross domain JSESSIONID cookie of tomcat.

    site.com
    sub1.site.com
    sub2.site.com

    should have all JSESSIONID cookie .site.com.

    tried to configure in an additional web bundle web.xml

    Code:
     <session-config>
      <cookie-domain>.site.com</cookie-domain>
     </session-config>
    That did not work on dm-server, it still created the cookie with e.g. sub1.site.com.

    Is there any possibility to set it with MANIFEST.MF or Spring annotation based?
    Found no solution yet, do i need to go the old-style manual HttpServletResponse.addCookie way?

    Any ideas?

    -Thomas

  2. #2
    Join Date
    Jan 2006
    Location
    Zürich, Switzerland
    Posts
    423

    Default

    Hi Thomas,

    Quote Originally Posted by tkoeppen View Post
    Is there any possibility to set it with MANIFEST.MF or Spring annotation based?
    No, there is no way to set this via manifest headers or Spring annotations.

    Quote Originally Posted by tkoeppen View Post
    Found no solution yet, do i need to go the old-style manual HttpServletResponse.addCookie way?
    To be honest, I've never tried to configure a cross-domain session cookie in Tomcat, but I did run across the following two discussions and a Bugzilla entry for Tomcat 6 which may be of use:



    Please note, however, that there is currently no way to configure custom valves in the dm Server.

    If I find out any additional information, I'll let you know.

    HTH,

    Sam

Posting Permissions

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