ligin/logout integration. Internal session