in reply to Cookie->fetch problem

Hi,

In the posted subroutine you have   use CGI qw/:standard/;

But it doesn't make use of :standard or "CGI" at all -- its extraneous

Replies are listed 'Best First'.
Re^2: Cookie->fetch problem
by tultalk (Monk) on Mar 10, 2017 at 05:39 UTC

    Forgot to tale it out. Not so easy. Now I can't log out. Ugh!! Cleared all the cookies and shut down. Still logged in Obviously the logged in flag is still st. Tomorrow another day.

      Hi: Round and round. Just can't recover a $sid from a cookie.

      Tried count on the cookies and it returned 0 Still struggling with this hole in my program. There are three cookies associated with my site.

      Fri Mar 10 12:31:32 2017 manage_users.cgi: keycount: '0' at /home/jalamior/www/httpsdocs/cgi-bin/lib/perl/manageusers.pm line 681.

      my %cookies = CGI::Cookie->fetch; my $count = keys %cookies; warn("keycount: '$count'"); while(my($key, $value) = each %cookies){ Dumper \$key; Dumper \$value; if($key eq $sessionname){ $sid = $value; } }

        they expired?

        if firefox
        tools->options->privacy->show cookies.
        look for your domain(s), press + to expand, look for cookie names.

        if you are running a separate test server, make sure you are looking at the right domain

        Well,

        I think its time to show a complete program

        Or get some hands on help

        Some problems cannot be debugged piecemeal , conceptual holes don't allow it