Results 1 to 3 of 3

Thread: Login Cookie - Subdomain matching ".domain.tld"

  1. #1
    Join Date
    Apr 2012
    Posts
    15

    Default Login Cookie - Subdomain matching ".domain.tld"

    I know, I need Cookie with domain name set to

    Code:
    .domain.tld
    Is there a possibility to do some Spring Security automagic to achieve this, or do I need to rewrite half of spring security framework?

    Note I do use both JavaConfig and XML Config for my application, and I'm already on 3.1.1 core (3.1.0 security) with @Annotation configuration elements.

  2. #2
    Join Date
    Aug 2011
    Location
    Mexico City / Atlanta GA
    Posts
    30

    Default

    Try having a look to the javaee Cookie api docs instead. Path is the property you need to modify.

  3. #3
    Join Date
    Apr 2012
    Posts
    15

    Default

    So does that mean, that using code, which after login process takes all Cookie object from request, changing the Path to .domain.tld and returning it to client is correct way?

    It seems to me quite hard and undocumented way.

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
  •