Page 1 of 1

Cookie in Browser

Posted: Fri Sep 05, 2014 2:40 pm
by lilzz
$.cookie('SessID',data.content.sessionid,{ path: '/' });

In this example, there are 2 commas therefore 3 fields ? Rae they name value pair?
But what's SessID value? I would expect something like SessID: value.
Looks like path: has the value of '/'.

Re: Cookie in Browser

Posted: Fri Sep 05, 2014 2:47 pm
by DougieLawson
What language and web framework are you using? What are you trying to achieve? Is this a long lived cookie or a transient session cookie?

Can you post your complete code rather than a random snippet from it?

Re: Cookie in Browser

Posted: Fri Sep 05, 2014 9:49 pm
by lilzz
JavaScript

Re: Cookie in Browser

Posted: Sun Sep 07, 2014 8:08 pm
by DougieLawson
Since it looks like JQuery, try this: http://stackoverflow.com/questions/1458 ... ith-jquery