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

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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (9)
As of 2014-09-18 12:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (113 votes), past polls