modify session to redis version