jquery - how to store ajax response data into a cookie -


here i'm sending 1 ajax request ajax.php file,

<script>              $.ajax({                         type: "post",                         url: "ajax.php",                         cache: false,                                        data:{date: ondate, session:timing, t:time},                         beforesend:function(){                         $('.book_table_right').html("<img src='<?php echo base_url();?>img/loader.gif'/>");                         },                         success: function(response){                             $('.book_table_right').html(response);                         },                         error: function(){                                                   alert('error while sending request..');                         }               }); </script> 

html

here i'm getting response , i'm showing response in div.book_table_right

but when refreshing again div.book_table_right getting empty.

for i'm thinking store response cookie,

but how, please can me..

thanks


Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -