aspose file tools*
The moose likes Servlets and the fly likes Session Timeout setting?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Session Timeout setting??" Watch "Session Timeout setting??" New topic
Author

Session Timeout setting??

Kumar Navin
Ranch Hand

Joined: May 27, 2004
Posts: 51
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.
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 29254
    
140

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.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Kumar Navin
Ranch Hand

Joined: May 27, 2004
Posts: 51
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
internet detective
Marshal

Joined: May 26, 2003
Posts: 29254
    
140

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)
Mike Nightsky
Ranch Hand

Joined: Aug 18, 2001
Posts: 48
If you instantiate the session you could set each session its own time to live


Win the opportunity to make money on the Internet<br /><a href="http://sweeps.sitesell.com/minirich.html" target="_blank" rel="nofollow">http://sweeps.sitesell.com/minirich.html</a>
Pratapchandran Ramakrishnan
Greenhorn

Joined: Jan 07, 2005
Posts: 5
what is web.xml. How web.xml works.
Pratapchandran Ramakrishnan
Greenhorn

Joined: Jan 07, 2005
Posts: 5
what is web.xml. How web.xml works.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Session Timeout setting??
 
Similar Threads
how to increase session time out
session timeout implementation
Display message after session timeout in struts2
Session timeout not working
How to change session expiring time of jboss?