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

What's the difference between authentication and authorization?

1203


How do we call one servlet from another servlet?

1100


What is the difference between Server and Container?

1308


Why is Servlet so popular?

1118


What is the difference between servlet and jsp?

1172


What is cookie in servlet?

1117


What are the phases of the servlet life cycle?

1185


What are the different session tracking techniques?

1243


Explain load on start-up and its importance?

1191


Which interface should be implemented by all servlets?

1267


What is servlet in tomcat?

1102


What exception should be thrown when servlet is not properly initialized?

1058


What is http servlet in java?

1118


What is ServletConfig object?

1249


Why the container loads server at the application startup and how?

1116