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 can we invoke another servlet in a different application?

0 Answers  


What do you mean by session tracking and also explain its techniques?

0 Answers  


How do you create connections for number of users, if you want to improve performance?

2 Answers  


Is it good idea to create servlet constructor?

0 Answers  


What is pure servlet?

0 Answers  


Can I override destroy() method of Servlets?

4 Answers   Accenture,


How do you communicate in between Applets and Servlets?

0 Answers  


request parameter how to find whether a parameter exists in the request object?

0 Answers  


What is difference between ServletResponse sendRedirect() and RequestDispatcher forward() method?

0 Answers  


What is context switching?

6 Answers  


What is the protocol used by Server & Client?

2 Answers  


What is the difference between the include() and forward() methods?

0 Answers  


Categories