re-implement the redis as session feature.