ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
info       Did you received any Funny E-Mails from your Friends and like to share with rest of our friends? Yeah!! you can post that stuff   HERE
Google
 
Categories  >>  Software  >>  Java J2EE  >>  Java Related  >>  Servlets
 
 


 

 
 Core Java interview questions  Core Java Interview Questions
 Advanced Java interview questions  Advanced Java Interview Questions
 Swing interview questions  Swing Interview Questions
 EJB interview questions  EJB Interview Questions
 Servlets interview questions  Servlets Interview Questions
 Struts interview questions  Struts Interview Questions
 JDBC interview questions  JDBC Interview Questions
 JMS interview questions  JMS Interview Questions
 SunOne interview questions  SunOne Interview Questions
 J2EE interview questions  J2EE Interview Questions
 Weblogic interview questions  Weblogic Interview Questions
 Websphere interview questions  Websphere Interview Questions
 Java Networking interview questions  Java Networking Interview Questions
 Java J2EE AllOther interview questions  Java J2EE AllOther Interview Questions
Question
when will cookie information  destroy?
 Question Submitted By :: Vikneswarank
I also faced this Question!!     Rank Answer Posted By  
 
  Re: when will cookie information destroy?
Answer
# 1
cookie is small amount of data and it's store on the client
machine that is your browser machine

..Developer to create cookie and set the life time of cookie
on our web application
example

cookie.setMaxAge(1000);

the cookie available in 1000ms
 
Is This Answer Correct ?    7 Yes 2 No
Suresh
 
  Re: when will cookie information destroy?
Answer
# 2
cookie is a"small amount of data" that is set by the server
on the client.

we have setmaxAge() for destroy cookie.

1.cookie.setMaxAge(100)-->100 sec
     If we set the max age of a cookie to 100 sec,the browser 
holds the cookie for 100 sec even if we close the browser.

2.If we set max age value to negative value the browser hold
the cookie till we close the browser.

3.If we use setMaxAge(0) the browser will arase the cookie.
 
Is This Answer Correct ?    6 Yes 0 No
Balakrishna
 
 
 
  Re: when will cookie information destroy?
Answer
# 3
when we disable the cookies inside the client browser or if
the cookie age is finished which is set as
cookie.setMaxAge(mins*secs);
 
Is This Answer Correct ?    0 Yes 0 No
Ravikiran
 
  Re: when will cookie information destroy?
Answer
# 4
when we disable the cookies inside the client browser or if
the cookie age is finished which is set as
cookie.setMaxAge(mins*secs);
 
Is This Answer Correct ?    0 Yes 0 No
Ravikiran
 

 
 
 
Other Servlets Interview Questions
 
  Question Asked @ Answers
 
what is the advantage of using Servlets over CGI programming?  2
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? AZTEC1
What happens, when client requests for server object, which is not yet loaded into the memory?  1
when the webcontainer creates ServeletConfig,ServletContext objects? befoure creating the Servlet object or not? TCS3
What are setComment and getComment methods in Cookies?  2
How variables can be accessed across the sessions?  3
which type of data passing is used in realtime?  1
can i call init() method in destroy() method of servlset. ? IBM2
What type of protocols are used in HttpServlet?  1
what are the way a client can be tracked? IBM1
How to run a servlet program? Infosys3
What is use of parseQueryString?  1
How can a servlet refresh automatically if some new data has entered the database? IBM2
What is servlet? Siemens13
What is forward() and include() of servlets RequestDispatcher interface?  5
Why should we go for interservlet communication?  2
How to maintain security in servlets?  2
Hi Friends, Suppose you have a web appliction which consists of 100 clients are connected with Connection pooling and they are associated with 100 connection objcet and connected with DB sever,Due some problem DB-Server suddenly crashed and server came to down state for a while after few minutes DB-server once again up,Now how will I manage my Pool Management with my 100 clients...can any one tell me?????????????????? ProgressSoft3
How to pass a requrest object of one servlet as a request object to another servlet? Verizon3
how the server will know its the same jsp page? HCL1
 
For more Servlets Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com