I am using xmlrpc to make a rails app communicate with an OpenX ad server. The OpenX ad server starts a session on the 1st request and associates the session with the class, not an instance of the class.
The session is associated with the class, and not an instance of the class. Classes in Rails applications persist past the end of a request. So what happens is that the next request is handled by the same session instead of a new one, and if the session is expired I get an error. One way to fix this is to just logout / explicitly kill the session after every request but I do not like that as a solution.
Using RoR 2.3.2 how do I create an instance of a class that will go away at the end of the XMLRPC request?