Revert "Removed unused state variables"

Altough the UserAgent never uses these variables the session class does.

This reverts commit a59fffe627fd9da006dd00320a068f87ecfb8367.