Forums.Sureshkumar.net : A Perfect Place to Share Knowledge         Blogs     Games    Magazines    

"Sharing knowledge does not lessen your store, often it gets you more. Sharing plays a key role in relationships and bonding, happens in small steps and is assisted through community membership."

Go Back   SURESHKUMAR.NET FORUMS > TECHNICAL DISCUSSIONS > JAVA Technologies > Java Interview / Technical Questions
Register FAQ Members List Calendar Games Blogs Search Today's Posts Mark Forums Read

Java Interview / Technical Questions Kindly solve an many as questions you can. It will sharpen your skills and those solutions will help others too.

   

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old 23-01-07, 10:47 PM   #1 (permalink)
Junior Member
 
preethisingh's Avatar
 
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 preethisingh will become famous soon enough preethisingh will become famous soon enough
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.
preethisingh is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 25-01-07, 01:41 PM   #2 (permalink)
Moderator
 
t_mohan's Avatar
 
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 t_mohan is a splendid one to behold t_mohan is a splendid one to behold t_mohan is a splendid one to behold t_mohan is a splendid one to behold t_mohan is a splendid one to behold t_mohan is a splendid one to behold t_mohan is a splendid one to behold
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
t_mohan is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-09-08, 06:48 PM   #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 adnanmaks is on a distinguished road
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?....
adnanmaks is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT +6.5. The time now is 03:30 PM.





Search Engine Optimization by vBSEO 3.1.0