There is REST system that interact with clients devices.
Every time client makes login the server creates session, save it in memory and receives authorization key.
Now customer wants to save session s to database.
I never made the storing sessions to database.
Please advise how to implement it? What should be taken in account? What are important points in such implementation?