Hats off to Kelly. I have been logged in for half an hour with no sign of the session ejection problem.

Note: I am a techie, so it is fair if I observe that MySQL is a bitch and a half. Well done.
I define internal martial art as unusual muscle recruitment and leave it at that. If my definition is incomplete, at least it is correct so far as it goes.