This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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
Saloon Keeper

Joined: Oct 23, 2005
Posts: 3703
    
    5

Only 1 type. String value/pairs.


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

Joined: Mar 22, 2005
Posts: 41180
    
  45
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.
 
 
subject: on Cookies
 
Similar Threads
can anyone tell me how to make a authentication with jsp & servlet
remember user password in jsp/java
WA #1.....word association
Session sharing (JSP-PHP)
handling next and back buttons in javascript