in reply to PERL Cookies playing with JavaScript Cookies

The method used to set the cookie should be independent of the cookie itself. Are you restricting access to a specific path? If so, maybe the Perl script isn't allowed to access it because it isn't in the required path.
  • Comment on Re: PERL Cookies playing with JavaScript Cookies

Replies are listed 'Best First'.
Re^2: PERL Cookies playing with JavaScript Cookies
by admiral_grinder (Pilgrim) on Aug 04, 2005 at 18:55 UTC
    I'm not quite folllowing you about the path part because in the perl I do a CGI::Application->cookie() and I get all the cookie names that I want to change. Both Perl and JS. I can use the values from both too, I can't modify the JS ones though.
      The default path for CGI.pm cookie is '/'. If your JS is creating the cookie in another path Perl probably will not read it. You can see the cookie's path in your browser (at least I can on Firefox).


      Igor S. Lopes - izut
      surrender to perl. your code, your rules.

        Thanks man, that is it. I don't know why it didn't come out and smack me in the face harder than what it did do.

        $brian->{'idiot_points'} += 5;