Add sp_with_logout example
Fix up sp example, make it compile