• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HttpSession duration increment during transaction

 
Kaustubh G Sharma
Ranch Hand
Posts: 1283
Chrome Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

If I am doing a big time consuming transaction(transaction of million/billion records), for which completion time is not fix. Now during this period my session got expired, which put me out of it, without completion of successful transaction.

Now I am looking for a solution which keep track of this transaction time and also at the same time update session expiry limit.

Thanks
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64623
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Personally, I would delegate the long process to another thread or even another process that could care less about the session. Record the job and its progress/completion status in the database, and give the user a page to go to that displays that status. That way they can be off doing other stuff, even go to lunch, and come back later to check how things are going.
 
Kaustubh G Sharma
Ranch Hand
Posts: 1283
Chrome Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Bear
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic