session cookie setting only for host instead of domain

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Bill Seitz

    session cookie setting only for host instead of domain

    I'm trying to set a cookie to apply over all hosts in my domain.

    I have a settings file setting
    $domain ="quietcare.inf o";
    $cookieDomain = ".".$domain ;

    Then I use that $cookieDomain as an argument in my set-cookie command.

    But it doesn't seem to be working. My browser still shows the
    cookie-set request as being just for the host, not for the domain. And
    when I go to another server in my domain and look at the full request,
    I don't see that cookie value as set.

    What am I missing?

    Does the domain arg only apply to stored cookies? (I read that in an
    ASP document, it seemed horribly stupid, but still...) (My servers run
    Linux.)

    Thanks.
  • Bill Seitz

    #2
    Re: session cookie setting only for host instead of domain

    as a bit of further detail, I set the cookie with
    setcookie('cook ie_email',$p_em ail,0,'/',$cookieDomain );

    Comment

    • Ian.H

      #3
      Re: session cookie setting only for host instead of domain

      On Tue, 17 Aug 2004 09:15:48 -0700, Bill Seitz wrote:
      [color=blue]
      > as a bit of further detail, I set the cookie with
      > setcookie('cook ie_email',$p_em ail,0,'/',$cookieDomain );[/color]


      Further detail to?

      I was quite curious about this after only seeing this post as
      something I've looked at recently (had some issues with actually).. but
      now I have no idea what you're referring to, because you're replying to
      something but not quoting _anything_.

      Snipping is great, but don't get too hasty with it that it makes the
      thread then unfollowable.



      Regards,

      Ian

      --
      Ian.H
      digiServ Network
      London, UK


      Comment

      Working...