saving recent searches to cookie
<p>I initially was saving the user's recent searches to a sessions array (php) which works but i am having a hard time getting around the (shared) server settings - to make it last 30 days.  Since it's not sensitive data i thought I would retry this with jstorage/jquery instead. Is that possible across multiple pages? 
This is what i have right now but it's not working :( :</p>

<pre><code>jQuery(document).ready(function() {

if (jQuery.jStorage.get('test') != '') {
    jQuery.jStorage.set('test2', '&lt;?php echo $_GET['s']; ?&gt;' );
} else {
    jQuery.jStorage.set('test', '&lt;?php echo $_GET['s']; ?&gt;' );
}

jQuery.jStorage.setTTL('test', 30000);
jQuery.jStorage.setTTL('test2', 30000);
var index = jQuery.jStorage.index();
for(i in index) {
    var result = jQuery.jStorage.get(index[i]) + " ";
    jQuery('#mysearches').append('&lt;li&gt;' + result + '&lt;/li&gt;');
}
});
</code></pre>

<p>is this even possible to do what I explained?  is there a better way? Any direction would be helpful.</p>

<p>thanks in advance.</p>
