lilzz
Posts: 411
Joined: Sat Nov 30, 2013 5:27 pm

Cookie in Browser

Fri Sep 05, 2014 2:40 pm

$.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 '/'.

User avatar
DougieLawson
Posts: 39124
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Cookie in Browser

Fri Sep 05, 2014 2:47 pm

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?
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

lilzz
Posts: 411
Joined: Sat Nov 30, 2013 5:27 pm

Re: Cookie in Browser

Fri Sep 05, 2014 9:49 pm

JavaScript

User avatar
DougieLawson
Posts: 39124
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Cookie in Browser

Sun Sep 07, 2014 8:08 pm

Since it looks like JQuery, try this: http://stackoverflow.com/questions/1458 ... ith-jquery
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

Return to “General programming discussion”