Answer Posted / madhuri
There are three ways ...
1)call setMaxInnactiveInterval()
we cal call the above mtd in two ways,i.e Programatically
Declaratively
Declaratively means through WEB.XML,by using session-timeout
we can close the session.
2)using session.Invalidate()
3)logout the session
| Is This Answer Correct ? | 7 Yes | 1 No |
Post New Answer View All Answers
Write a program to find maximum and minimum number in array?
What does s mean in regex?
What causes memory leaks in java?
Explain parallel processing in java8?
what are three ways in which a thread can enter the waiting state? : Java thread
Why for each loop is used?
What Is Query Throttling in java?
What is the purpose of garbage collection in java?
Is null a string or object in java?
What is difference between throw and throws ?
What is class level lock ?
2) Suppose there are 5 directories having lot of files (say txt files) in each directory. 2 things :- 2.1) You want to search for filenames which have a particular pattern. 2.2) Out of these filtered files you want to search for a particular keyword or a search string. How can you achieve this?
What are the drawbacks of reflection?
What is string [] args?
What is close method? How it's different from Finalize & Dispose?