This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Hi all, Just a quick question on sessions. I am working on a site that adds a few different objects to the session. For example, User, Album and a few other values. What I want is for the session to expire only when the browser is closed and not if the user does not use the browser for say 15 min. I have tried session.setMaxInactiveInterval(-1) but that does not seem to do it. Anyone know how to do it? Regards david
Hi You can set session-timeout tag (web.xml) to a value to 0 or less Thanks Sainudheen
Joined: Sep 27, 2002
So if I edit the web.xml file so that the session tag is set to zero does this mean a session will only expire when the server is stopped? What I am after is having the session expire when the browser is closed? Is this possible? Regards David
Sadly the browser does not tell the server when it closes. I don't think you can tell the difference between a)user closed the browser b)user went out for dinner & dancing or c)user is busily surfing other sites. If you really, really gotta know (really!) you can put an applet in the browser and have it send "I'm still here!" messages to the server or have the server send "Are you still there?" messages to the applet. We're buying a vendor product that does this so it can synchronize telephony events and workflow availability with the browser. We're buying it because it ain't easy to build!
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com