• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Form based authentication - problem

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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>
reply
    Bookmark Topic Watch Topic
  • New Topic