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 |
How do I support both get and post from the same servlet?
A client sends requests to two different web components. Both of the components access the session. Will they end up using the same session object or different session ?
What is called servlet container?
What is meant by a servlet?
Difference between httpservlet and generic servlets?
How to pass session values from one servlet container to another servlet container? or how can we get session values of one container in another container?
What is session tracking?
How ThreadSafe page attribute will be working in Servlet as well as in JSP?Automatically ThresdSafe is true in JSP so service method will be destroy in each and every request or not?so how thresd will handle srevice method?
why are extending GenericServlet and why are extending HttpServlet explain?
what do you understand by url rewriting?
What is preinitialization of a servlet?
How to get the current httpsession object?