Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Recommendations for client-side state management

by jdrago999 (Pilgrim)
on Nov 23, 2011 at 01:54 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (8)
As of 2024-03-28 09:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found