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

11. static class A { 12. void process() throws Exception { throw new Exception(); } 13. } 14. static class B extends A { 15. void process() { System.out.println(”B”); } 16. } 17. public static void main(String[] args) { 18. new B().process(); 19. } What is the result? 1 B 2 The code runs with no output. 3 Compilation fails because of an error in line 12. 4 Compilation fails because of an error in line 15.

6 Answers  


Does java support multiple inheritances?

0 Answers  


Can we override compareto method?

0 Answers  


Name two subclasses of the TextComponent class?

2 Answers  


What is exception hierarchy in java?

0 Answers  






What are passing parameters?

0 Answers  


What is the root class for all Java classes?

8 Answers   IBM, Infosys,


What is the difference between Integer and int?

10 Answers   Infosys,


What are assembly attributes?

0 Answers  


Explain the overview of UDP messaging.

0 Answers  


What is a instance variable in java?

0 Answers  


Can we write class inside a class in java?

0 Answers  


Categories