in reply to Cookies and 'accept only from server'

Greetings,

What server are you using? You could play around with the server to force all requests from http://myhost.com/ to be redirected to http://www.myhost.com/. It's an icky solution, but in theory it would work.

Alternately, try dropping the "domain" key/value pair from the cookie and see if the default will set the cookie even on the http://myhost.com/ event.

-gryphon
code('Perl') || die;

  • Comment on Re: Cookies and 'accept only from server'

Replies are listed 'Best First'.
Re: Re: Cookies and 'accept only from server'
by Xxaxx (Monk) on Aug 15, 2001 at 23:59 UTC
    Dropping the domain key/value pair seems to work for Opera, Mozilla (0.9.2), and MSIE 5.0

    It does not work for Netscape 4.7

    So it looks like this might be a workable solution since I'll only miss the few Netscape 4.7 users who happen to leave off the www.

    I am nervous though about leaving out the domain key/value pair since it is specified in the cookie specs. But Opera is pretty good about complaining when it receives a 'bad cookie' so maybe it will work okay.

    Thanks for the suggestion.
    Claude