• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Form based authentication - problem

 
Lakshmi Narayana puvvada
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am using form based authentication in my application, by default i am getting login page when session got expired. i have my own filter to validate weather session got expired or not.....

The problem is like this , i am getting the login page once session expired. i need a solution or control before expiring the session,
I need to redirect the different page instead of login page.

i am using "j_security_check" for login action.
and my web.xml is like this.

<login-config>
<auth-method>FORM</auth-method>
<form-login-config>
<form-login-page>/jsp/login.jsp</form-login-page>
<form-error-page>/jsp/flogin.jsp</form-error-page>
</form-login-config>
</login-config>

My own filter.....

<filter>
<filter-name>SessionTimeOutFilter</filter-name>
<filter-class>
com.ihml.common.SessionTimeoutFilter
</filter-class>
</filter>
<filter-mapping>
<filter-name>SessionTimeOutFilter</filter-name>
<url-pattern>*.do</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>SessionTimeOutFilter</filter-name>
<url-pattern>*.jsp</url-pattern>
</filter-mapping>
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic