outcast has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re: cookies and perl
by THRAK (Monk) on Apr 16, 2001 at 23:47 UTC
Re: cookies and perl
by traveler (Parson) on Apr 17, 2001 at 00:14 UTC
    Cookies can be valid for a host or domain. If the domain is set to "host.domain" then the cookie is only vaild on "host". If it is set to ".domain" it is valid for any host in domain".

    THRAK's first reference gives the details. Just be sure to put a period "." in front of the domain name (e.g. <bold> <bold>.<bold>foo.com</bold>) if you want it valid for the whole domain.

    --traveler

    BTW, cookies can cross languages OS's and web server software.

Re: cookies and perl
by suaveant (Parson) on Apr 16, 2001 at 23:57 UTC
    You can't make cookies travel between servers... best you can really do is create a cgi on the other server that outputs an image, and pass that all of your info in the query string. Call the cgi from the first server and have the cgi write a cookie based on the data passed to it.
                    - Ant