Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

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.

Comment on Re: Cookie Problem

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://368572]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (10)
As of 2016-05-25 18:43 GMT
Find Nodes?
    Voting Booth?