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?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain mvc pattern.

1012


Which method is called when reference variable is passed in system.net?

2398


What's the use of servletcontext?

1138


How to generate the server side programming and the advantages of it over the other languages?

997


What is httpservlet class?

1137


What are the different methods involved in generic servlet?

1088


How can we invoke another servlet in a different application?

1205


What are common tasks performed by Servlet Container?

1257


How do you deal property files in servlet?

1056


What is the use of request dispatcher interface?

1004


What is life cycle of Servlet?

1069


What is servlet container. how it works?

1134


Explain the role of dispatcherservlet and contextloaderlistener.

1181


How are filters?

1034


What is session tracking?

1201