Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


how session will be expired?

Answers were Sorted based on User's Feedback



how session will be expired?..

Answer / 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

how session will be expired?..

Answer / laxmi

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 ?    29 Yes 2 No

how session will be expired?..

Answer / sanjay gajula

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 ?    15 Yes 2 No

how session will be expired?..

Answer / 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

how session will be expired?..

Answer / shikha

When User Logout session will be expired automatically

Is This Answer Correct ?    15 Yes 15 No

Post New Answer

More Core Java Interview Questions

How can we run a java program without making any object?

0 Answers  


What is race condition ?? (Threading concept) TCS 2 sept10

3 Answers   SparkTG, TCS,


What is the difference between class forname and new?

0 Answers  


why an outer class cannot be declared as private?

1 Answers  


How are variables stored in memory?

0 Answers  


What is a java predicate?

0 Answers  


What are the topics in advance java?

0 Answers  


What is assembly language?

0 Answers  


Is main a function?

0 Answers  


What is the format of Inner Class after it compiled?

1 Answers  


What is output buffer?

0 Answers  


what is the diffrences between platform independent and portable

5 Answers   TCS,


Categories