[Completes #49164647] Store session information in the database, not in cookies