jquery-cookie Questions
3
Solved
Is there a way to store in a variable a cookie creation date? I'm using the jquery.cookie plugin. If there is not a way, I'm thinking about store in the cookie, as value, the actual time/date. It c...
Serviceberry asked 18/7, 2013 at 11:23
8
Solved
I want to use jQuery to delete cookies; I have tried this:
$.cookie('name', '', { expires: -1 });
But when I refresh the page, the cookie is still there:
alert('name:' +$.cookie('name'));
Why?
Mccloud asked 8/9, 2010 at 20:35
4
Solved
How do i set my cookie to expire after 30 sec or 1 m ?
this is my code :
$.cookie('username', username, { expires: 14 }); // expires after 14 days
Kielce asked 13/3, 2014 at 7:26
6
Solved
How do I save JSON data in a cookie?
My JSON data looks like this
$("#ArticlesHolder").data('15', {name:'testname', nr:'4',price:'400'});
$("#ArticlesHolder").data('25', {name:'name2', nr:'1', pr...
Pennywise asked 19/11, 2010 at 12:38
4
Solved
I am using this jquery.cookie plugin and I need to set value to TRUE or NULL/FALSE.
I am trying to do it like this: $.cookie('ff', true, { expires: 30, path: '/' }); but it sets the value to strin...
Sermonize asked 17/3, 2012 at 18:4
5
Solved
I'm trying to determine how I might save a collapsible panel's collapsed state using $.cookie.
This question has been helpful so far, but still missing the end solution.
Any solutions I have fou...
Pennant asked 3/11, 2015 at 15:5
2
Solved
I have a list of javascript objects:
var people = [
{ 'name' : 'Abel', 'age' : 1 },
{ 'name' : 'Bella', 'age' : 2 },
{ 'name' : 'Chad', 'age' : 3 },
]
I tried to store them in a browser cooki...
Grub asked 27/1, 2012 at 21:9
4
Solved
There are a lot of topics regarding this function, nonetheless I can't seem to get it working. I've googled on this specific case and a bunch of links let me here, but strangly enough I can't seem ...
Buttery asked 18/12, 2012 at 16:2
1
Solved
In my previous question I was searching for a way to create a notification message on my WordPress site, when there is a new post published. After a great answer, this is working very well. I can c...
Podgy asked 6/12, 2014 at 18:42
3
Solved
I know this question has been asked a thousand times but none of the answers really give me what I'm looking for. I am using jQuery cookie to store some information, but I want them to expire when ...
Goodnight asked 1/10, 2013 at 13:50
3
Solved
I have a site that we require the user to have enabled JavaScript and cookies before they can login to the site. (The JS part is done and works perfectly.) At the moment, we have been been setting ...
Hostetler asked 8/1, 2010 at 18:21
3
Solved
I want to:
Check to see if a cookie with name of "query" exists
If yes, then do nothing
If no, create a cookie "query" with a value of 1
Note: I am using jQuery 1.4.2 and the jQuery cookie plug...
Schoening asked 13/5, 2010 at 1:56
2
Solved
I have a project which using a a REST API. Here when Isend a login request, they are sending me the response as JSON containg some data. Along with that in Response Header
Access-Control-Allow-Ori...
Hoogh asked 19/10, 2012 at 6:33
1
I am trying to create a Bootstrap alert box that remembers when users click the close button. I guess I need to store that information in a cookie. Ideally that cookie will only last for that curre...
Hereby asked 15/11, 2012 at 23:47
2
Solved
$.cookie is not reading cookies that have been previously set by the server response.
I can read cookies that have been set with $.cookie().
I can see all domain cookies set with Firefox's Web De...
Tubbs asked 27/5, 2012 at 23:2
1
I am using the popular jquery cookie plugin to set a session cookie value via javascript like so:
function ChangeLoginUser(sel) {
var selectedUser = sel.options[sel.selectedIndex].value;
$.cooki...
Farah asked 19/7, 2012 at 17:6
3
Solved
I am developing an application using jQuery that uses cookies. Right now, it is located at application.html on my PC desktop.
However, I cannot store and retrieve a cookie. I had included jquery-1...
Vestpocket asked 29/1, 2012 at 19:45
1
Solved
Today I'm using the built-in cookies of the jsTree in order to preserve user navigations in the tree.
on node click in the tree the user is redirected to the corresponding page in my site and the ...
Nathannathanael asked 6/12, 2011 at 17:31
2
Solved
First, set a cookie:
jQuery.cookie('monster', 'big', { path : '/sesame/'});
Next, try to read it:
jQuery.cookie('monster');
Firefox tells me that the cookie has indeed been set. The value is ...
Incoherent asked 20/8, 2010 at 11:49
1
© 2022 - 2025 — McMap. All rights reserved.