how session will be expired ?
Answers were Sorted based on User's Feedback
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 |
Answer / george from psg
to close the session we can use invalidate code..
| Is This Answer Correct ? | 3 Yes | 0 No |
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 |
Is string thread safe in java?
What is stack explain?
How do you declare a variable?
How to decrease number of hashings in has
Explain the hierarchy of java exception classes?
Which of these methods belong to Thread & Object class? join, yield, sleep, wait, notify
Explain, why the constructor is required in implemented class?
What sorting algorithm does javascript use?
What are examples of modifiers?
Can main() method in java can return any data?
Why wait(),notify(),notifyAll() methods defined in Object class althought we are using in only threads.
Which sorting is best in java?