how session will be expired ?

Answers were Sorted based on User's Feedback



how session will be expired ?..

Answer / dsr

we can write the code in web.xml.
<session-timeout>2000</session-timeout>
or
to kill the perticular session.

Is This Answer Correct ?    5 Yes 0 No

how session will be expired ?..

Answer / dipesh

we set time out programmetically or in DD

Is This Answer Correct ?    4 Yes 0 No

how session will be expired ?..

Answer / george from psg

to close the session we can use invalidate code..

Is This Answer Correct ?    3 Yes 0 No

how session will be expired ?..

Answer / sivadasan

Correct DSR.

I would like to add one more point.

If we declare the session time out in XML means it will
take in minutes to kill the session.

But , if we declared session.timeout(60) in our program
means it will take in seconds. I think.

If any issue let me know

Thanks,

S.Sivadasan
Coromandel Infotech India Ltd.,
sivadasan.s@c2il.com

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More Core Java Interview Questions

What are integer overflows and underflows and how to handle them?

3 Answers   Wipro,


Is it possible to use string in the switch case?

0 Answers  


What is a variable in java?

0 Answers  


when i write string s1="java"; in one program(application) and string s2="java"; in another application on the same jvm will both objects s2,s2 will refer to same memory location where "java" is stored in string pool.

2 Answers  


What do you mean by aggregation?

0 Answers  






What is double checked locking in singleton?

0 Answers  


What does isempty () do in java?

0 Answers  


Define locale.

0 Answers  


What state does a thread enter when it terminates its processing in java programming?

0 Answers  


Why do we need array in java?

0 Answers  


Can an interface extend another interface?

0 Answers  


is there any function in java to make the text to blink?

6 Answers  


Categories