Store messages in sessions