On 2/27/06, Elam Daly <[EMAIL PROTECTED]> wrote:
> Oh, and how do I determine if a session has expired?  I don't see any
> enlightening methods in the HttpSession class.

Your mistake here is thinking that the servlet api was intended to be useful :)

You have to do something like this:

            boolean expired = false;
            try
            {
                 session.getAttribute("anything"):
                 expired = false;
            }
            catch (IllegalStateException e)
            {
                expired = true;
            }

Reply via email to