Checking A Cookie Exists Login Logoff Using Jquery / Js
I have a DNN login/logoff control which isnt working properly. I want to therefore make my own using JS/JQUERY. When the user is logged in the HTML on the page looks like this: <
Solution 1:
The demo of cookie is working just fine. Its seems you forgot to include the plugin.
See a working one here
Update:
You can check the preexisting of a cookie like this
var preval = $.cookie('cookie-name');
if(preval != null) {
//...
}
Post a Comment for "Checking A Cookie Exists Login Logoff Using Jquery / Js"