Excuse me is there a way I can redirect to a url after a logout?
What I’m trying to do is to call an action on a my logout controller, then logout via SS (in order to kill session) and then return to login url
something as
public ActionResult Index()
{
// [ Some Clean up ]
return Redirect("~/api/auth/logout?ReturnUrl=www.google.com");
}
Thanks
Yes, see this answer on StackOverflow for different examples: http://stackoverflow.com/a/25227684/85785
i.e. you can use the ?continue
parameter.