Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Session time out

 
Arun R. S. Chandran
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What kind of session timeouts? And what application have you deployed on JBoss?
 
Arun R. S. Chandran
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
K.
Thank you Jaikiran

Regards,
Arun
 
Vikky Bhat
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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..?
 
Vikky Bhat
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic