Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Reading the Domain Attribute of a Cookie in JS

 
Somnath Mallick
Ranch Hand
Posts: 482
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I would not call myself and expert in JavaScript. But i was writing this code where... I have the created the cookie code ready.



But I would like to know that is there any way to read the domain attribute that is being set here for the cookie? I have Googled a lot but i haven't found much. I don't have a JS book at hand that I can refer.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34071
331
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


I'm guessing you don't mean this. Are you asking how to read the domain of a cookie that already exists?
 
Somnath Mallick
Ranch Hand
Posts: 482
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes... After i set it to the cookie. I don't know how to retrieve it.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic