I am using cookie plug in my application. where i display some information from cookies. it is working fine with firefox, but have some issues with IE. It works fine if i open a new tab in IE, it shows values from cookies, but if i close IE browser window it clears all cookies. this is not the case with mozilla, every time i open mozilla it shows those specific values from cookies. below is the code i use to set/get cookies.
function setCookies(){<br/>
if($('select[id$="ddlFromStation"]')[0].selectedIndex!=0){<br/>
$.cookie('d_from',$('select[id$="ddlFromStation"]').val());<br/>
}<br/>
if($('select[id$="ddlToStation"]')[0].selectedIndex!=0){<br/>
$.cookie('d_to',$('select[id$="ddlToStation"]').val());<br/>
}<br/>
if($('input[id$="txtFromStation"]').val()!=""){<br/>
$.cookie('i_from',$('input[id$="txtFromStation"]').val());<br/>
}<br/>
if($('input[id$="txtToStation"]').val()!=""){<br/>
$.cookie('i_to',$('input[id$="txtToStation"]').val());<br/>
}<br/>
return true;<br/>
}<br/>
$(document).ready(function(){<br/>
if($.cookie('d_from')!=null){<br/>
$('select[id$="ddlFromStation"]').val($.cookie('d_from'))<br/>
}<br/>
if($.cookie('d_to')!=null){<br/>
$('select[id$="ddlToStation"]').val($.cookie('d_to'))<br/>
}<br/>
if($.cookie('i_from')!=null){<br/>
$('input[id$="txtFromStation"]').val($.cookie('i_from'))<br/>
}<br/>
if($.cookie('i_to')!=null){<br/>
$('input[id$="txtToStation"]').val($.cookie('i_to'))<br/>
}<br/>
}); <br/>