how session will be expired?

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


Please Help Members By Posting Answers For Below Questions

What is incompatible types in java?

542


When is the arraystoreexception thrown?

571


how to create multithreaded program? Explain different ways of using thread? When a thread is created and started, what is its initial state? Or extending thread class or implementing runnable interface. Which is better? : Java thread

601


What is the use of predicate in java 8?

495


Which is fastest collection in java?

566






How many bytes are there?

544


How objects of a class are created if no constructor is defined in the class?

581


What is set string?

597


what is server side caching?

1609


Write a java program to generate fibonacci series ?

575


What is nullpointerexception?

559


What's the default access specifier for variables and methods of a class?

518


What is bifunction in java?

681


What is a variable in java?

537


What does I ++ mean?

612