Announcement Announcement Module
Collapse
No announcement yet.
why page not found when rel-login after logout? Page Title Module
Move Remove Collapse
This topic is closed
X
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    Try doing a redirect after your session is invalidated, with the redirect being to a URI that is not secured.

    Comment

    Working...
    X