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 |
What’s the difference between the methods sleep() and wait()?
which one is more efficient int x; 1. if(x==null) 2.if(null==x) state which one either 1 or 2?
what is the need to set path in java? how many ways to set path in java? Explain breif?
Hi Every One I Have Small Doubt Please answer This???????????????????????????? I Want to use AbstractList class methods(java.util.AbstractList) My Program is import java.util.*; class DemoOne extends AbstractList { public static void main(String[] args) { AbstractList a=new DemoOne();//This One is Correct?? DemoOne a1=new DemoOne();//This One is Correct?? Both Are Not Working System.out.println("Hello World!"+a); System.out.println("Hello World!"+a1); } } Error IS: DemoOne.java:2: DemoOne is not abstract and does not override abstract method get(int) in java.util.AbstractList class DemoOne extends AbstractList AnyOne can Please Provide The Solution????????????????????????? Plzzzzzzz
What are different types of access modifiers?
What is Connection pooling? Explain Pros and Cons?
What is the equal sign?
what are the methods of an object class?
why we write public static void main (String args[]) in core java plz explain briefly??????????????????
What is a treeset in java?
Can we declare main () method as non static?
What is immutable class? how to make a Class explicitly "Immutable"?Wap to make a class explicitly immutable.