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

Re: Recommendations for client-side state management

by jdrago999 (Pilgrim)
on Nov 23, 2011 at 01:54 UTC ( #939578=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use JSON::XS;
    use Digest::MD5 'md5_hex';
    ...
    <input type="hidden" name="_signature" value="@{[ $signature ]}" />
    <input type="hidden" name="_data" value="@{[ $base64_encoded ]}" />
    HTML
    
  2. or download this
    
    my $json_string   = decode_base64( $q->param('_data') );
    ...
      die "The data has been tampered with";
    }# end unless()
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (2)
As of 2021-11-29 06:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?