my dog learned polymorphism*
The moose likes JSF and the fly likes session is not refreshing for ajax4jsf request Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "session is not refreshing for ajax4jsf request" Watch "session is not refreshing for ajax4jsf request" New topic
Author

session is not refreshing for ajax4jsf request

Chennaeda rao
Greenhorn

Joined: Mar 22, 2009
Posts: 1
Hi All,
In our project we are using richfaces 3.2 with myfaces 1.2.2
Application server is JBoss 4.04(Clustered mode)
Session timeout is declared as 30 mins in web.xml

After succesful login , If user is idle for 30 mins session should be invalidated and should show login page.
But it is not happening in case of ajax requests.

Here is a secnario.
If user in a page (main.jsf) after 25 minutes of idle time, if he click a seach button which is a4j:commandButton,he gets some
search result.Since it is ajax button ,only partial page is refreshed..
Again after 5 mins if user clicks any other link, session is getting expired.
User expects his session will be refreshed as he made some request 5 minutes before..

We are using cookies to maintain session.
How jboss invalidate session?
why jboss not refreshing session for ajax request?

Kindly advise..
Thanks in advance...



Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16019
    
  20

Something seems wrong there. Just because it's an AJAX request that shouldn't make any difference. Any request to the JBoss server should reset the session timer, whether cookies are being used or URL rewriting.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: session is not refreshing for ajax4jsf request