Here is my code. jquery.session.js file is also loaded I could not get where is the problem. Can you Please tell me the solution.
$.session.set('rmng_time', remaining_seconds);
alert("j session "+$.session.get('rmng_time'));
this code gives an error in console TypeError: $.session is undefined
You need to reffer this tutorial:
http://phprocks.letsnurture.com/create-session-with-jquery/
Add required files and refer code -
jquery-1.9.1.js and jquery.session.js
ex.
To set session:
$(function() {
$.session.set("myVar", "Hello World!");
});
To get session:
alert($.session.get("myVar"));
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With