Results 1 to 2 of 2

Thread: why page not found when rel-login after logout?

  1. #1

    Default why page not found when rel-login after logout?

    i am using Acegi 0.8.2. i think it is cool, but it took me a lot of time to figure out things. it is almost working, except this problem.

    i have this bean:

    <bean id="authenticationProcessingFilter"
    class="net.sf.acegisecurity.ui.webapp.Authenticati onProcessingFilter">
    <property name="filterProcessesUrl">
    <value>/j_acegi_security_check</value>
    </property>
    <property name="authenticationFailureUrl">
    <value>/index.html?</value>
    </property>
    <property name="defaultTargetUrl">
    <value>/personal/myPage.html</value>
    </property>
    <property name="authenticationManager">
    <ref bean="authenticationManager"/>
    </property>
    </bean>

    the problem is logout. in my logout controller, i have the following:

    ContextHolder.setContext(null);
    request.getSession().removeAttribute("xyz");
    request.getSession().invalidate();

    after i click the logout button, i am directed to the login page. if i type
    my correct username and password now, i always got the error:

    The page cannot be found

    (please note that at this time, the url at the address bar is
    http://localhost:8080/te/j_acegi_security_check)

    then i immediately click the browser's Back button, and do the login again with my correct username and password, and everything is okay, and the url at the address bar is:

    http://localhost:8080/te/personal/myPage.html

    i cannot figure out why. am i missing something?

    thanks for your help!
    pete

  2. #2
    Join Date
    Aug 2004
    Location
    Sydney, Australia
    Posts
    2,768

    Default

    Try doing a redirect after your session is invalidated, with the redirect being to a URI that is not secured.

Similar Threads

  1. Order of Bean definitions matters?
    By cfuser in forum Container
    Replies: 2
    Last Post: Oct 21st, 2005, 10:29 AM
  2. EHCaching Hibernate
    By dencamel in forum Data
    Replies: 3
    Last Post: Sep 6th, 2005, 09:03 PM
  3. Replies: 4
    Last Post: Aug 17th, 2005, 04:42 AM
  4. Replies: 2
    Last Post: May 13th, 2005, 05:42 AM
  5. Replies: 1
    Last Post: Apr 13th, 2005, 10:08 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •