Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

on Cookies

 
amit bhadre
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How many types of Cookies are there in servlets?

thanks in advance....

cheers
amit bhadre
 
Scott Selikoff
author
Saloon Keeper
Posts: 4014
18
Eclipse IDE Flex Google Web Toolkit
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Only 1 type. String value/pairs.
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do you mean by "type of cookie"? The javadocs mention that both Netscape-style cookies and RFC2019-style cookies are supported.
 
subbarao N.V
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Two types of cookies

Temporary: These cookies will be deleted from your browser you close the browser

Permanent: These cookies will be there after closing the browser.


Because for cookies, They have the name,value,age. If you set the age for the cookie, that will be there until the age==-1. Because the default age for cookie is -1.These type of cookies will be closed, when ever we close the browser.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic