Add session mechanism