in reply to Re: Sending Cookies from localhost with perl
in thread Sending Cookies from localhost with perl

I tried to use ".local" as in

PerlSetVar MasonSessionCookieDomain ".local"

But firefox didn't accept it. That was the thing that frustrated me most during my search. Whatever you tried "local", "", "localhost", "192.168.0.1", "127.0.0.1", ... It didn't work on my local machine. Only " " seems to work with firefox (using an ubuntu system).

I didn't try it on a windows box or with other browsers.

Kind regards

  • Comment on Re^2: Sending Cookies from localhost with perl

Replies are listed 'Best First'.
Re^3: Sending Cookies from localhost with perl
by rowdog (Curate) on May 18, 2010 at 14:16 UTC

    Don't use -domain. Firefox sees the space and just drops the domain altogether. If you look at the cookie details, you'll see that the domain is not set.

    Domain is used to allow cookies to be shared by more than one machine within one domain. E.G. www.example.org can set the example.org domain so media.example.org can use the same cookie. localhost doesn't have a valid domain so you'll have to settle for a host only cookie, which is what you will get from the non-standard -domain => " ".

    I wrongly guessed that you were using domain to get around the IE bug. Sorry about the windows slander ;^)

      You right, omitting the domain works also. thx