| Forums.Sureshkumar.net : A Perfect Place to Share Knowledge Blogs Games Magazines |
|
|||||||
| 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 | Rate Thread | Display Modes |
|
|
#1 (permalink) |
|
Junior Member
Join Date: Jul 2006
Posts: 1,391
Thanks: 1 Thanked 18 Times in 18 Posts Thanks: 1
Thanked 18 Times in 18 Posts
Rep Power: 17
|
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: 636
Thanks: 57 Thanked 78 Times in 63 Posts Thanks: 57
Thanked 78 Times in 63 Posts
Rep Power: 17
|
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
__________________
M0h@n |
|
|
|
|
|
#3 (permalink) |
|
Junior Member
Join Date: Sep 2008
Age: 26
Posts: 1
Thanks: 0 Thanked 0 Times in 0 Posts Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 1
|
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?.... |
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Need .Net Interview Questions | vidyasagarkumar | VB / ASP.NET Technologies | 6 | 06-09-07 01: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 |