Save all the key pressed in a textarea and sent it to a PHP server?
<p>The task is to save all the key pressed in a text area and their timestamp. When a button is pressed the values will be sent to the server for processing. I have the javascript that detects the key. I understand I will probably have to do an ajax request to send the data from the client to the server.</p>

<p>I'm not sure what solutions should I use:</p>

<ul>
<li>cookies ?</li>
<li>html 5 local storage ?</li>
</ul>

<p>I'm not limited by old browsers like IE6/7.</p>

<p>I'm only interested in a pseudo code for this process.</p>
