Revert "Avoid mass-assignment related initialization errors of session class"

This reverts commit 627fc10fb3d6b48474318fb1ab9181db32462388.
Avoid mass-assignment related initialization errors of session class