1 Reply Latest reply on Sep 7, 2009 5:24 AM by Sandeep Rao

    Session Timed out message in login.jsp

    Sandeep Rao Newbie

      Hello.

      I have a requirement to alert the user when the session is timed out, at the login page.

      Is there any method by which I can determine this from login.jsp.
      Or should it be implemented using filters to forward the user to a different page?

        • 1. Re: Session Timed out message in login.jsp
          Sandeep Rao Newbie

          I solved this with a workaround.
          I created a Resource URL that returns request.getPortletSession().isNew().
          Then I requested this url from the login page by AJAX.
          If the result is false the login page shows a message saying "session timeout". Further, you could forward the user to another screen using javascript if required.

          Not a fool proof idea. But I guess it does the job.