This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes Session Time out Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Session Time out " Watch "Session Time out " New topic

Session Time out

vijaykumar Mummana

Joined: Jun 22, 2011
Posts: 5
Hi All,

We have an application with struts frame work.In which we have used JSP, EJB's and the application session out we have kept it as 30 mins.

We got a requirement like below :

For Example the student was filling an college form which contains some 5 JSP'S to fill the details and the student has filled 3JSP's and he was doing some other work and when he come backs after 45 mins to enter the details the session got expired. The requirement was after 25mins it should pop up a message in the screen "the application session is going to expire in 5 min" (as a remainder).

Can you guys please give me some ideas to do this.

Thanks a lot in advance.
Jeanne Boyarsky
internet detective

Joined: May 26, 2003
Posts: 30068

You can use JavaScript to pop-up an alert when the user is on a page for 25 minutes. However, the user will not see it if the user is not in the browser. You could also use AJAX to save periodically.

[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
vijaykumar Mummana

Joined: Jun 22, 2011
Posts: 5
Thanks a lot i Wil try n if i need i will post again.
jQuery in Action, 2nd edition
subject: Session Time out
Similar Threads
Request Timing out in weblogic 8.1
session is not refreshing for ajax4jsf request
How to redirect to home page if the user is not used for a specified time
Maintaining the session in all the JSP pages in the Application.
need store object for 5 mins