aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Reading the Domain Attribute of a Cookie in JS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Reading the Domain Attribute of a Cookie in JS" Watch "Reading the Domain Attribute of a Cookie in JS" New topic
Author

Reading the Domain Attribute of a Cookie in JS

Somnath Mallick
Ranch Hand

Joined: Mar 04, 2009
Posts: 477
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

Joined: May 26, 2003
Posts: 31111
    
165



I'm guessing you don't mean this. Are you asking how to read the domain of a cookie that already exists?


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Somnath Mallick
Ranch Hand

Joined: Mar 04, 2009
Posts: 477
Yes... After i set it to the cookie. I don't know how to retrieve it.
 
 
subject: Reading the Domain Attribute of a Cookie in JS