In my code i want to assign value of jquery variable to PHP variable and session that PHP variable and use it in another page.For session i am using jquery plugin jquery.session.js.But i am getting error like TypeError: cookies[i].split is not a function.
$(function() {
var certificate_id =123;
$.session.set("myVar", certificate_id);
alert($.session.get("myVar"));
});
Please help me in solving this.