how session will be expired?

Answer Posted / kshama varshney

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 ?    33 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Give few difference between constructor and method?

524


Can we convert integer to string in java?

600


What is the declaration statement?

519


What are thread safe functions?

516


Can we cast any other type to boolean type with type casting?

543






What is the technique adopted to create an immutable class?

526


What is the purpose of finalization in java programming?

568


What is a stringbuilder?

513


What are checked exceptions?

585


What is the use of arraylist class in java?

561


What are the new features in java 8? Explain

563


Which collection is sorted in java?

552


Does list maintain insertion order java?

541


Explain the significance of class loaders in bootstrap?

502


When a thread is executing synchronized methods , then is it possible to execute other synchronized methods simultaneously by other threads?

573