I have a bunch of webservices that give different data based on the session. For now, we have 2 different logins, but will have more later. I know the point of tests is that they should be able to be tested indepedently, in any order. So, I figured I'd have a base class that logs out of all existing sessions, then logs into a specific one, runs the test, and then logs out. That way, each test will ensure it's being tested without worry of what session is available, etc, and if it's not, I'll get an exception knowing why.
Is this ok practice or is there a better way?