locked
How to call Signout() from a non-HealthServicePage page? RRS feed

  • Question

  • My application consists of different types of pages. I'd like to have a Masterpage with "Signout" link on the top of it. But as far as I sees this function is available only for HealthServicePage-based pages. How can I invoke this function or its equivalent from a non-HealthServicePage page?
    Wednesday, June 15, 2011 4:54 PM

All replies

  • Please refer our NonHealthServicePage application in codeplex (http://nonhealthservicepage.codeplex.com/) to see how you can write HealthVault application's without inheriting from HealthServicePage page.

    You can write a wrapper or directly invoke the below code for SignOut.

    public void SignOut()

    {

    WebApplicationUtilities.SignOut(HttpContext.Current, ApplicationId);

    }

    Hope this helps,

    Thank you


    Anish Ravindran
    Wednesday, June 15, 2011 7:34 PM