in reply to Re: Re: CGI cookie problem
in thread CGI cookie problem

I've figured out what the problem is, but not how to fix it...

The cookie is set if I access the site by the URL http://mymachine.mydomain.mycompany.com, but not when I access it by http://sitename.

I've tried setting the domain in the cookie to 'mymachine' and also 'mydomain.mycompany.com' and 'mymachine.mydomain.mycompany.com' but to no avail...

How do I set a cookie for users who don't want to specify the entire URL?

A

Replies are listed 'Best First'.
Re: Re: Re: Re: CGI cookie problem
by little (Curate) on Mar 05, 2004 at 13:04 UTC

    So it seems you've made use of 'cookie domain'. Read up CGI.pm's docs for waht that does (actually it denotes to what server the browser shall be allowed to send that cookie) and how to use it.

    Have a nice day
    All decision is left to your taste