Identity Auto Login Cookie In Database

When I turn on auto login it store user data in cookie. It is some way to store this user data in database instead of cookie?

Cookie is stored on the client side by the browser. The database is on the server. What exactly are you trying to acomplish?

Exactly, I dont want to store internal user data outside the server. I think, it is enought to store some identificator (hash etc) and set states from data stored in database.

You shouldn’t use setState directly then, save your data in session or use models to interact with the database.