session is operate in wsgi mode.