That really sounds like a problem with scoping of Apache::Session objects to me. Try removing the session code or explicitly undef'ing your session object at the end of the request. Or put in some warnings in Apache::Session to see if DESTROY is being called.