• Post Reply Bookmark Topic Watch Topic
  • New Topic

cookie

 
sri jaisi
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how cookies get stored in client(as string,or
objects)
whatz the purpose of getdomain?
 
Chetan Parekh
Ranch Hand
Posts: 3640
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by sri jaisi:
how cookies get stored in client(as string,or
objects)
whatz the purpose of getdomain?


Cookie get stored as string.

getDomain() reutrn the domain name set for this cookie. Read more about cookie here.
 
Durgaprasad
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Cookies are stored as strings in the client machine
You can use getMasAge method is Cookie class to set the time for cookies to be persistance on the client machine. If you set it for -1 cookies will disappear immidetaly when the browser shuts down. Domain is something which is declared by the rfc. each cookie will come under some domain. Its a kind of logical grouping. I dont think any developer should worry much abt this.

SCJP 91
SCWCD perparing
ISDX perparing
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sri jaisi,
Welcome to JavaRanch!

In an effort to help you get the most from our forums, we've compiled a
list of tips for asking questions here. You can find the list in our
FAQ section here.
In particular please see:
UseRealWords

Abbreviations such as "u" or "ur" in
place of "you" and "you are" or "you're" confound language translation software making
it hard for our non-English speaking members to read your posts.
"plz" is not a word in the English language.

whatz should be what's

Again, welcome to JavaRanch and good luck with your question.
-Ben
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!