aspose file tools*
The moose likes Servlets and the fly likes on Cookies Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "on Cookies" Watch "on Cookies" New topic
Author

on Cookies

amit bhadre
Ranch Hand

Joined: Jan 23, 2006
Posts: 124
How many types of Cookies are there in servlets?

thanks in advance....

cheers
amit bhadre


Thanks advance who ever answers this question.


regards
amit bhadre
Scott Selikoff
author
Saloon Keeper

Joined: Oct 23, 2005
Posts: 3716
    
    5

Only 1 type. String value/pairs.


My Blog: Down Home Country Coding with Scott Selikoff
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42592
    
  65
What do you mean by "type of cookie"? The javadocs mention that both Netscape-style cookies and RFC2019-style cookies are supported.


Ping & DNS - my free Android networking tools app
subbarao N.V
Greenhorn

Joined: Aug 21, 2006
Posts: 13
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: on Cookies