form based login

Discussion in 'Java' started by crash.test.dummy, Sep 28, 2006.

  1. i have a login page that is controlled by the web.xml:

    <login-config>
    <auth-method>FORM</auth-method>
    <form-login-config>
    <form-login-page>/login.jsp</form-login-page>
    <form-error-page>/login.jsp?failed=true</form-error-page>
    </form-login-config>
    </login-config>

    and works fine. authentication is done thru LDAP.

    inside my application, i put data in the session (pagination keys,
    etc.)
    when my session timed-out, and the user clicked on the link (whose
    action involves accessing the data in the session), the login page is
    displayed. this is the normal behavior. however, being the session
    already invalid, all data in the session are lost. so as soon as the
    user entered the login data, i get exceptions (nullpointer, etc).
    because the data that i need to access from the session is no longer
    there.

    one way to avoid this problem is to always go to a page everytime a
    user logs in, regardless if the user logged in for the first time, or
    when the session timed-out and the user has re-logged.

    is there a way to do this but still using the <login-config> from
    web.xml? authentication has to go thru LDAP and i wanted to avoid
    coding for such.

    i am using weblogic 8.1.x and struts.

    thanks.
    crash.test.dummy, Sep 28, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Bharath
    Replies:
    3
    Views:
    2,150
    Robert
    May 10, 2005
  2. Andrea Desole
    Replies:
    4
    Views:
    879
    Andrea Desole
    Jan 20, 2006
  3. DavidADEW
    Replies:
    2
    Views:
    2,712
    DavidADEW
    Sep 1, 2006
  4. manu
    Replies:
    1
    Views:
    786
    Evans
    Jul 20, 2008
  5. Kigunda Mbogo

    OWA and Form based login page

    Kigunda Mbogo, Apr 23, 2004, in forum: ASP .Net Security
    Replies:
    0
    Views:
    147
    Kigunda Mbogo
    Apr 23, 2004
Loading...

Share This Page