How j_spring_security_logout should work?
I have Spring MVC project with Spring Security. I am wondering how `j_spring_security_logout` should work. I have logout action defined in view like this:

    <a href="<c:url value="/j_spring_security_logout" />">Logout</a> 

In my `spring-security.xml` I have defined this:

    <security:form-login login-page="/login" default-target-url="/wellcome" authentication-failure-url="/loginfailed"  />
	<security:logout logout-success-url="/logout" logout-url="/j_spring_security_logout" />
	<security:session-management invalid-session-url="/invalidsession" />

I have supposed that clicking logout should redirect me to `/logout` view. However when I have deleted `security:session-management` for a while, logging out redirects me indeed to `/logout` view. But with this logging out redirects me to `/invalidsession`. This is default action? The `logout-success-url` is ignored in this way?

How j_spring_security_logout should work?
===

I have Spring MVC project with Spring Security. I am wondering how `j_spring_security_logout` should work. I have logout action defined in view like this:

    <a href="<c:url value="/j_spring_security_logout" />">Logout</a> 

In my `spring-security.xml` I have defined this:

    <security:form-login login-page="/login" default-target-url="/wellcome" authentication-failure-url="/loginfailed"  />
	<security:logout logout-success-url="/logout" logout-url="/j_spring_security_logout" />
	<security:session-management invalid-session-url="/invalidsession" />

I have supposed that clicking logout should redirect me to `/logout` view. However when I have deleted `security:session-management` for a while, logging out redirects me indeed to `/logout` view. But with this logging out redirects me to `/invalidsession`. This is default action? The `logout-success-url` is ignored in this way?
