File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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
author & internet detective

Joined: May 26, 2003
Posts: 33102

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.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, 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.
I agree. Here's the link:
subject: Session Time out
jQuery in Action, 3rd edition