Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Apache2::Cookie troubles... sanity check needed on auth/sess handling

by badaiaqrandista (Pilgrim)
on Apr 05, 2006 at 02:05 UTC ( #541254=note: print w/ replies, xml ) Need Help??


in reply to Apache2::Cookie troubles... sanity check needed on auth/sess handling

I think it's because you set an anonymous hash as the value for the cookie. Apache2::Cookie expects a string for the '-value'. So either you send two cookies, one holds the username and another one holds the MAC, or you serialize it with Storable::freeze when sending it and deserialize it when getting it with Storable::thaw.

However, I would just join them with comma when sending, and split them when receiving.

On debugging: use the good old 'warn' and 'Data::Dumper::Dumper' combination, printing everything to the apache error log. If you don't have access to the log, just print them to the browser.

--------------
badaiaqrandista


Comment on Re: Apache2::Cookie troubles... sanity check needed on auth/sess handling

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (8)
As of 2015-07-06 11:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (73 votes), past polls