in reply to Re: Re: Re: Cookie not getting stores
in thread Cookie not getting stores

I'm sorry, I don't understand what you mean. I thought I was reading the cookie while I was checking for pass.
  • Comment on Re: Re: Re: Re: Cookie not getting stores

Replies are listed 'Best First'.
Re: Re: Re: Re: Re: Cookie not getting stores
by chromatic (Archbishop) on Dec 25, 2003 at 18:52 UTC

    Perl doesn't work that way. You first declare %cookie as a hash. Then you look for the pass entry of the hash. It's not there because %cookie is empty: you just declared it and Perl doesn't automagically put cookie values in hashes for you.

    Since you're using CGI.pm, you might have better luck with:

    my $pass = cookie( 'pass' );

    This will actually retrive the cookie with the name pass from the query, if it exists.

Re: Re: Re: Re: Re: Cookie not getting stores
by Anonymous Monk on Dec 25, 2003 at 17:08 UTC
    I thought I was reading the cookie while I was checking for pass.
    He said

    I don't see where you assign to %cookie anywhere before you check it for pass.

    you obviously missed that bit, which is why its so big