Design some interfaces for session module.