Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

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.

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

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://541254]
[LanX]: or other language?
[moritz]: LanX because of usability issues, and the lack of evolvement
[holli]: lol to the robust charme or to the data transfer?
[holli]: it works fine with Lynx though :)
[LanX]: it's easier to patch then to migrate to a PHP board, there are many semantics like linking , authorisation, templates ,...
[LanX]: I've only seen 30% of the semi professional documentation
[holli]: i was just thinking of the bare content.
[LanX]: Plenty of "templates" realised with CGI-HTML-function
[LanX]: well if you want you can fetch all XML and translate it to another board markup
[moritz]: at this time, a migration could consist of only migrating the rendered HTML of nodes

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (7)
As of 2017-11-20 19:29 GMT
Find Nodes?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:

    Results (292 votes). Check out past polls.