Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6683189
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T04:47:31+00:00 2026-05-26T04:47:31+00:00

I have an application set up using jaas module for login. There are ajax

  • 0

I have an application set up using jaas module for login. There are ajax function calls in the application so I am experencing the notorious ajax session timeout problem, which means a ugly login page is getting into a page’s place holder if session is timeout. I am now fixing it in an ugly way by checking if the return ajax result contains the login form, but apparently, this is not a good way.

I tried to add a filter to check if session has timed out and return something meaningful for ajax request. But it seems that jaas runs prior to servlet filters. I have checked and acknowledged valve is some kind of “interceptor” which runs before jaas. It seems to be the thing I needed.But it’s container-base not application-based, which is not so application-frieldly IMO. So I am asking if this is the only way to fulfil what I am trying to do or are there any better alternatives.

I am using Jboss AS 4.2.3

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T04:47:31+00:00Added an answer on May 26, 2026 at 4:47 am

    It seems to me there’s no real solution to this problem. JAAS didn’t consider session timeout using ajax at all.

    We can only dirtily check if the ajax response contains the login page elements to detect if session is timeout or not.

    I will mark this as answer. And I am happy to mark a better answer if there’s any to come.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a small ajax application built with php. Using phpMyAdmin I have set
We have an ASP.net 2.0 web application which is using themes set on the
I have a pretty standard table set-up in a current application using the .NET
I have a web application that has set to navigate its input fields using
I have an application using Java servlets/JSP's. There are multiple clients using my app,
I have a django application set up using mainly the admin interface with a
I am using BlazeDS and Spring Security and have set up my application using
My application is set up using ViewFlipper so that I have one main View
I have a Java application set up as a service to do data-mining against
So I have a XNA application set up. The camera is in first person

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.