File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes HttpSession object status, when Server shuts down Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "HttpSession object status, when Server shuts down" Watch "HttpSession object status, when Server shuts down" New topic

HttpSession object status, when Server shuts down

Sivaram Ch

Joined: May 30, 2006
Posts: 3
Ideally, I am expecting that in the case of server crash/shutdown, all the clients sessions will get expired, and which means all session objects should get destroyed.

This behavior I am able to practically see in Weblogic 8.1 server, but in the case of Tomcat 5.0 and WASCE 1.0, the sessions are persisted some where by the servers. When I restart the servers, I am able to continue the session at the client side.

Can someone please clarify, what does the specification has to say in this regard ?
What should be the ideal behavior ?

Thanks in advance.
[ May 31, 2006: Message edited by: Bear Bibeault ]
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

In my signature, there is a link to the servlet specification.

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63548

"Sivaram ch",

There aren't many rules that you need to worry about here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

JavaRanch Sheriff

[Asking smart questions] [About Bear] [Books by Bear]
Sivaram Ch

Joined: May 30, 2006
Posts: 3
Ch is my last name, if you can beleive.
Ch stands for Chiranjeevi in India, which basically means forever.

And one more thing, I could not get any clue in specification.
Please send me your answer soon.
Jim Yingst

Joined: Jan 30, 2000
Posts: 18671
Sivaram, we also need the last name to not be an abbreviation. "Sivaram Chiranjeevi" would be ideal, from our perspective. Thanks.

"I'm not back." - Bill Harding, Twister
I agree. Here's the link:
subject: HttpSession object status, when Server shuts down
It's not a secret anymore!