Win a copy of Machine Learning Systems: Designs that scale this week in the Scala forum
or Xamarin in Action: Creating native cross-platform mobile apps in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Session Timeout setting??  RSS feed

 
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi! Friends,
Am new to OAS and am using 9i. A user gets logged out of the application automatically after 10 mins of inactivity. I found on net that tag <session-timeout>value in mins</session-timeout> needs to be set in web.xml file. I entered the same in the web.xml file of my application, but didn't work.
Can anybody tell me what to do and where lies the appropriate file??
Thanks,
-Navin.
 
author & internet detective
Marshal
Posts: 38250
623
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Navin,
web.xml is the appropriate file. Did you restart the app after changing the file?

Also, are you using any security? The login prompt for security has a different setting than the sesson timeout.
 
Kumar Navin
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi! Jeanne,
I did restart the app, but in vain. Am not using any security. It's just a simple login.jsp which the user fills in and submits. A servlet is called which instantiates a bean, authenticates the user and redirects it to the appropriate page. That's it.

-Navin.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 38250
623
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Navin,
How are you testing that "it doesn't work"?

I'm moving this to our Servlets forum since it isn't an Oracle specific question. (web.xml is the same regarless of your application server)
 
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you instantiate the session you could set each session its own time to live
 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is web.xml. How web.xml works.
 
Pratapchandran Ramakrishnan
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is web.xml. How web.xml works.
 
no wonder he is so sad, he hasn't seen this tiny ad:
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!