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

Where do you define dispatcherservlet?

996


What do you mean by cgi?

928


How can the session in servlet can be destroyed?

1129


Difference between java beans & servlets?

1004


When jsessionid is created?

1002


Difference between get and post in java servlets?

989


What is Servlet API used for connecting database?

1053


How to notify an object in session when session is invalidated or timed-out?

1037


What is url encoding and url decoding

1100


What is the difference between Servlet Request and Servlet Context when calling a Request Dispatcher?

1170


What do you mean by servlet?

1111


What are the mechanisms used by a servlet container for maintaining session information?

983


What is servlet interface?

1171


What mechanisms are used by a Servlet Container to maintain session information?

1126


How do you find out what client machine is making a request to your servlet

1023