*
The moose likes JBoss/WildFly and the fly likes Session time out Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Session time out" Watch "Session time out" New topic
Author

Session time out

Arun R. S. Chandran
Ranch Hand

Joined: Oct 08, 2008
Posts: 81
Hi,


I am a beginner in Jboss server.
Please let me know, is it possible to do session time out operations in Jboss server.

If so please guide me the correct path.

Regards,
Arun :roll:
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9937
    
159

What kind of session timeouts? And what application have you deployed on JBoss?


[My Blog] [JavaRanch Journal]
Arun R. S. Chandran
Ranch Hand

Joined: Oct 08, 2008
Posts: 81
i am using My Eclipse for application development, Struts framework (Web Application).
And using Jboss-4.0 as my application server.
Let me know if it is possible to set session time in Jboss Server?
I want to redirect to login page after specific time

Regards
Arun
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9937
    
159

Let me know if it is possible to set session time in Jboss Server?
I want to redirect to login page after specific time


So you want the session timeout for your web application. You can set it in the web.xml of your application. Look at the web.xml dtd, it has a session-config element which can be configured with a session-timeout element.
Arun R. S. Chandran
Ranch Hand

Joined: Oct 08, 2008
Posts: 81
Actually I gave it in web.xml. But it is not working properly. Some problem wioth thatr one. Thats why I asked can we set in Server side.
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9937
    
159

What problem are you running into and please post the web.xml configuration.

While posting logs or xml content or code, please remember to wrap it in a code block by using the Code button in the message editor window. Please use the Preview button to ensure that your post is correctly formatted.
Arun R. S. Chandran
Ranch Hand

Joined: Oct 08, 2008
Posts: 81
K.
Thank you Jaikiran

Regards,
Arun
Vikky Bhat
Greenhorn

Joined: Oct 23, 2008
Posts: 20
Hi Arun,
if you were speaking about time out related to HTTP session it is better to use HTTP session parameter "LastAccessTime"..i dint understand your scenario ? clearly mention where you want to implement session timeout?,is it for a perticular page or for bean..?


SCJP, SCWCD, WIPO-IP
Vikky Bhat
Greenhorn

Joined: Oct 23, 2008
Posts: 20
ok i read your previous post....see if you are using jsp you can make use of "LastAccessTime" variable and use java script for validation and redirection. hope it will help you...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Session time out
 
Similar Threads
Jboss- JMS
Jboss server is not starting within 1000 seconds
WebLogic 8.0 Configuration
Jboss Clustering - Session sharing is not working always
Rollback problem in transaction