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

What is meant by a web application

0 Answers  


What compiler do not do if we create our own constructor?

5 Answers   HCL,


What is the difference between servlet and filter?

0 Answers  


how many jsp scripting elements are there and what are those?

0 Answers  


What is filter? Can filter be used as request or response?

1 Answers  


Explain the methods in Generic and HTTP Servlets?

2 Answers  


What is connection pooling?

4 Answers   Wipro,


can u give some realtime example in ploymorphism? and inheritance?

11 Answers   SolutionNET,


What do you mean by interservlet communication?

0 Answers  


What exactly are the functions of servlet?

0 Answers  


what is the difference b/w DispatchAction and LookUpDispatchAction?

1 Answers   Deloitte, iGate, Tech Mahindra,


How can we refresh automatically when new data has entered the database?

0 Answers  


Categories