2 Replies Latest reply on Apr 10, 2009 6:41 AM by deanouk

    Session timeout during a transaction

    deanouk

      Hi.

      I've being seeing behaviour like this for a while on JBoss 4.2.x, but can't really understand it.

      A user has been logged in for sometime, then performs a task which takes a longish period ot time (maybe several minutes). During this task, the user, for some reason, has their session timeout, even though they've just performed this recent task.

      Due to a commit during the login process (recording the user's login datetime stamp) the transaction they were performing understandably fails with:

      java.sql.SQLException: You cannot commit during a managed transaction!

      Why is the user's session timing out in the first place?

      Regards,

      Dean.

        • 1. Re: Session timeout during a transaction
          deanouk

          This issue is compounded by the following scenario:

          User logs in
          Uploads a file ~takes >10 mins
          Uploads a file ~takes >10 mins
          Uploads a file ~takes >10 mins

          The session time-out is at 30 mins and the user's session is destroyed. But why, when they've been performing the above task during the session? Surely session time-out is based on idle time?

          • 2. Re: Session timeout during a transaction
            deanouk

            It's also interesting to note, that although the user is being re-logged in (for some reason) there is no user interaction to do this - something underlying within the authentication mechanism(s) is doing this automatically...