Changed sessions to database for AppFog