This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Servlets and the fly likes what is session expunging?was asked this question in an interview? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "what is session expunging?was asked this question in an interview?" Watch "what is session expunging?was asked this question in an interview?" New topic
Author

what is session expunging?was asked this question in an interview?

senthil sen
Ranch Hand

Joined: Oct 10, 2002
Posts: 184
how would we avoid session from being expunged?
i was asked this question in an interview?
Dominic Paquette
Ranch Hand

Joined: Dec 13, 2002
Posts: 64
I know 2 ways:
in code
session.setMaxInactiveInterval(-1);
or in the web.xml
<sesssion-config>
<session-timeout>-1</session-timeout>
</session-config>

Dominic
senthil sen
Ranch Hand

Joined: Oct 10, 2002
Posts: 184
thanks for ur reply,but i wanna to know the theory and logic of the concept session expunged??that word is new to me.,,
Dominic Paquette
Ranch Hand

Joined: Dec 13, 2002
Posts: 64
I think expunging a session means invalidating a session. Either it timesout or you can explicitlly invalidate it using HttpSession.invalidate();
Hope this helps
Dominic
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: what is session expunging?was asked this question in an interview?
 
Similar Threads
Can I declare a variable inside Jsp_init()
Question on Servlets
Interviw Q: Java Message Bean
Can we maintain state with a stateless session bean
question on session