![]() |
|
| Java Interview / Technical Questions Kindly solve an many as questions you can. It will sharpen your skills and those solutions will help others too. |
![]() |
| LinkBack | Thread Tools | Display Modes |
| | #1 (permalink) |
| Junior Member Join Date: Jul 2006
Posts: 1,391
Thanks: 1
Thanked 28 Times in 25 Posts
Rep Power: 19 | J2EE - difference between using invalidate() & sessionDestroyed Whats the difference between using invalidate() & sessionDestroyed for sessionclosing. Last edited by RisingSun; 25-01-07 at 01:58 PM.. |
| | |
| | #2 (permalink) |
| Moderator Join Date: Apr 2006 Location: India
Posts: 637
Thanks: 57
Thanked 85 Times in 68 Posts
Rep Power: 19 | Re: J2EE - difference between using invalidate() & sessionDestroyed As far my knowledge is concerned, invalidate() methods unbinds any object associated with the servlet and invalidates or destroys the session when called explicitly Where as sessionDestroyed() method will be called when we specify a session timeout and will be called when a session is destroyed, this will be invoked by the web container. and also when a invalidate() method is also called, it follows the execution Let me know your questions, If im wrong , pls tell me Thank You |
| | |
| The Following User Says Thank You to t_mohan For This Useful Post: | lalitha devi (08-10-09)
|
| | #3 (permalink) |
| Junior Member Join Date: Sep 2008 Age: 27
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 2 | Re: J2EE - difference between using invalidate() & sessionDestroyed tats correct mOhan. also when u say session=null...which is a crude and most undesired way of destroying a session, as far as i feel, the sessionDestroyed method of the HttpSessionListener is called before making the session 'null'. I definitely need some clarification ont he point I have made. any givers?.... |
| | |
![]() |
| Tags |
| difference , invalidate , j2ee , sessiondestroyed |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Need .Net Interview Questions | vidyasagarkumar | VB / ASP.NET Technologies | 6 | 06-09-07 12:37 AM |
| J2EE - What is the difference between Difference between doGet() and doPost()? | preethisingh | Java Interview / Technical Questions | 1 | 24-01-07 07:28 PM |
| J2EE - difference between instanceof and is Instance? | preethisingh | Java Interview / Technical Questions | 0 | 23-01-07 02:41 PM |
| j2ee interview Q & A | jasmine84 | JAVA Technologies | 4 | 23-01-07 02:09 AM |
| Java Contest-13 with answers | keerthi | JAVA Technologies | 8 | 31-12-06 09:44 AM |
| More Interview Questions Here... |