2 Replies Latest reply on Mar 4, 2002 6:14 PM by vitthal

    Storing Principal and session  information

    vitthal Newbie

      Hi I want to store the principal and session information from the servlet in the database once the user logs in. Is there any way I can find if the session is new and then stored it. I am using jboss JAAS security.
      I tried session.isNew() but it returns false after the user logs in. I guess session is created immediately after the login.
      Other method would be to set the attribute for the session and check it every time the request is made to see the value.
      Is there any better way of doing it.
      thanks a lot