Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Re: Cookie Problem

by matija (Priest)
on Jun 21, 2004 at 22:36 UTC ( #368572=note: print w/replies, xml ) Need Help??

in reply to Cookie Problem

oh, dear, oh dear, ohdear. Where to start?

First of all, why, why, why are you parsing the form variables and cookies yourself? People with a lot more experience have spent considerable time making sure that reliable secure routines exist for this, and they made them available in CGI module. use CGI, because CGI is your friend.

Second of all, when you don't know which part of program is misbehaving, break the problem into small parts. If you think that the post part may be getting the wrong data, why don't you print them? If you think the problem is in the cookie, print out the cookie line you receive, print out the intermediate values in the decoding process, print out the result.

That should give you some clues about where the problems are.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://368572]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (8)
As of 2018-06-24 17:38 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (126 votes). Check out past polls.