Current time: 11-12-2019, 09:09 AM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Setting JSON style cookie
09-14-2013, 01:25 AM
Post: #1
Setting JSON style cookie
I am unable to set JSON style cookies with either setCookie or by executing javascript. Does WPT support JSON style cookies?

This has not worked:

setCookie https://www.myurl.com mycookie={"mycookie":true}

Neither has this:

execAndWait document.cookie='mycookie={"mycookie":true};domain=myurl.com;path=/;';

Is there a bug or am I doing something wrong? I need to be able to set this cookie with several json nodes.
Find all posts by this user
Quote this message in a reply
09-16-2013, 11:35 PM
Post: #2
RE: Setting JSON style cookie
Which browser have you tried with? They all use different methods and there may be a bug or issue with one of them.
Visit this user's website Find all posts by this user
Quote this message in a reply
09-17-2013, 02:51 AM
Post: #3
RE: Setting JSON style cookie
(09-16-2013 11:35 PM)pmeenan Wrote:  Which browser have you tried with? They all use different methods and there may be a bug or issue with one of them.

I have tried IE9, Chrome and Firefox. Can you tell me what syntax I should be using?
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)