Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What are setSecure() and getSecure() methods in Cookies?



What are setSecure() and getSecure() methods in Cookies?..

Answer / harikrishna ravada

setSecure:

Indicates to the user agent that the cookie should only be
sent using a secure protocol (https). This should only be
set when the cookie's originating server used a secure
protocol to set the cookie's value.

public void setSecure(boolean flag)

getSecure:

Returns the value of the 'secure' flag.

public boolean getSecure()

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More Servlets Interview Questions

How the JSP file will be executed on the Server side?

0 Answers   Cap Gemini,


how to use servlets with j2ee ?

2 Answers   Tech Mahindra,


Which exception is thrown if servlet is not initialized properly?

1 Answers  


what is EJB and Java servlet

2 Answers  


Write a command to get actual path of a servlet to the server?

0 Answers  


can we create more than ServletContext and ServletConfig in your application

6 Answers   Patni,


What are the types of servlets? Explain

0 Answers  


Whats the advantages using servlets over using CGI?

0 Answers  


How threads are implemented in servlets?

3 Answers  


What is the difference between portlet and servlet?

0 Answers  


What is a servlet context object?

0 Answers  


Why do we have servlet filters?

0 Answers  


Categories