File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Session Time out Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » Struts
Reply Bookmark "Session Time out " Watch "Session Time out " New topic
Author

Session Time out

vijaykumar Mummana
Greenhorn

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
Marshal

Joined: May 26, 2003
Posts: 26184
    
  66

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
Greenhorn

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: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Session Time out
 
Similar Threads
session is not refreshing for ajax4jsf request
Maintaining the session in all the JSP pages in the Application.
How to redirect to home page if the user is not used for a specified time
Request Timing out in weblogic 8.1
need store object for 5 mins