I may be way off here, not sure exactly what you mean by 'digitally signed' as it relates to a cookie. You might want to take a look at CGI::Session. It will set a cookie on the client's browser with a long cryptic string which relates to a local file on the server which contains whatever serialized data you want to store with the session. That way when a subsequent http request comes in with that session's identity, you can access the data which has come in before on that 'session' and maintain 'state' across the requests.

'Digitally signed' suggests some sort of public-private key arrangement. `man ssh-keygen` will tell you more than you probably need to know about how to generate an encrypted key pair. You can use this tool to create keys for an encrypted web browser connection, or to permit password-less connections using the ssh protocol.

I've never heard of a 'digitally signed cookie' though. A google search on the quoted term turned up only nine hits, including two for your question. Google's spiders are quicker than my review of the newest nodes link, apparently.

-- Hugh

if( $lal && $lol ) { $life++; }

In reply to Re: Digitally Signed Cookie by hesco
in thread Digitally Signed Cookie by toronto75

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.