Use a vetted library or framework that does not allow this weakness to occur or provides
constructs that make this weakness easier to avoid.
With a stateless protocol such as HTTP, use a framework that maintains the state for
you.