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

Explain the features of java?

587


What is the core java?

539


What are the string methods in java?

580


How do you check if a character in a string is a digit or letter?

505


Explain the concept of proper inheritance?

613






Explain OOPs concept.

641


What is the purpose of interface?

573


Is java a virus?

528


Does constructor creates the object ?

578


Can we use return in constructor?

485


What is the difference between scrollbar and scrollpane?

607


how to prepare for IT Officers Interview in Banks

1498


Can we force garbage collector to run ?

566


In a container there are 5 components. I want to display all the component names, how will you do that?

1557


Why is java so popular?

627