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                      
tip   SiteMap shows list of All Categories in this site.
Google
 
Categories  >>  Software  >>  Core Java  >>  Java J2EE  >>  Java Related
 
 


 

 
 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
how session will be expired?
 Question Submitted By :: Gopalraop
I also faced this Question!!     Rank Answer Posted By  
 
  Re: how session will be expired?
Answer
# 1
When User  Logout session will be expired automatically
 
Is This Answer Correct ?    1 Yes 7 No
Shikha
 
  Re: how session will be expired?
Answer
# 2
In addition to what is said above we can use
'session.invalidate' function or else after a predetermined
time the session gets killed automatically.
 
Is This Answer Correct ?    9 Yes 0 No
Laxmi
 
 
 
  Re: how session will be expired?
Answer
# 3
THERE IS A ELEMENT NAME CALLED "SESSION-TIMEOUT" IN THE 
WEB.XML FILE OF APPLICATION SERVER USING THIS ELEMENT WE 
CAN EXPLICITLY SET THE TIME FOR SESSION TO GET EXPIRED

EX;-
  <SESSION-CONFIG>
    <SESSION-TIMEOUT>30</SESSION-TIMEOUT>
  </SESSION-CONFIG> 
 
  WE HAVE TO SET THIS IN THE WEB.XML FILE OF APPLICATION 
SERVER[TOMCAT]
 
Is This Answer Correct ?    6 Yes 0 No
Sanjay Gajula
 
  Re: how session will be expired?
Answer
# 4
There are two ways---
1)When we set session time out in WEB.xml then session will 
be automatically expire if nothing is happening after given 
time period 
2)if we are using "session.invalidate" function then after 
executing this function session will be expire.
 
Is This Answer Correct ?    10 Yes 1 No
Kshama Varshney
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
what is Hashmap & Hashtable wirh example? Saksoft4
What is clipping?  2
Is 'null' a keyword?  3
what is features of jdk 1.5? TCS2
Explain final, finalize() and finally?  6
What is the Dictionary class?  1
how to handle exceptions in core applications? CSS2
Why Java is not purely object oriented? Persistent21
Explain Event handling in AWT? TCS1
what is the form of storage space in java?  5
What is difference between static method and static variable?  6
Can a lock be acquired on a class?  2
Hi Friends, can u give code to convert ArrayList to HashMap and HashMap to ArrayList.  1
can we declare private class in java file?  6
What is the return type of read()?  2
Can we access private data outside of the class directly in java programming language? Why There is no runtime checking in java, which leads to access the private data directly outside of a class? Google2
Which all r Final classes in java except string?  3
What is run time polymorphism? Elementus-Technologies6
How can final class be used? Wipro2
types of applets?. TCS3
 
For more Core Java 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