The scenarios where I've seen this type of behaviour are when a new session is created for a user, invalidating the existing session. There are a few ways I've seen this happen:
- If you were to be working in WeBWorK, and then click the LTI link in your LMS again. Any of the existing WeBWorK windows would be associated with the old session, so they would be logged out, and would kick you out as soon as you clicked on a link.
- If two different people try to log in to the same WeBWorK account, the most recent one wins. For example if you had a shared professor account which prof A is logged into. As soon as prof B logs into the account, prof A would start getting the behaviour you describe.
Since the issue you're describing seems to happen consistently when you perform certain actions, it sounds like it won't be one of the above scenarios, though they may give you a clue as to what's going on in your case.
I do have a couple of shots in the dark that may apply to you:
- Have you tried with a different browser? It's possible that your browser is somehow restricting access to the WeBWorK session cookie, which is kicking you out in certain circumstances.
- Do you have SSL enabled? If so, check that $server_root_url in site.conf includes https and not http. If you are redirecting http requests to https, it could be that this works in most circumstances, but fails with some of the AJAX calls in the Library Browser.