RefreshAndSavePersonInfoToCookie Method (HttpContext, String)

HealthVault
Cleans the application's session of HealthVault information and then repopulates it using the specified authentication.

Namespace: Microsoft.Health.Web
Assembly: Microsoft.Health.Web (in Microsoft.Health.Web.dll) Version: 2.1.0.0 (1.15.1003.9505)

public static PersonInfo RefreshAndSavePersonInfoToCookie(
	HttpContext context,
	string authToken
)

Parameters

context
Type: System.Web..::..HttpContext
The current request context.
authToken
Type: System..::..String
The authentication to use to populate the session with HealthVault information.

This method should be called anytime the application takes a redirect from the HealthVault shell and there is a WCToken on the query string. Note, if you are calling PageOnPreLoad(HttpContext, Boolean, Boolean) or PageOnPreLoad(HttpContext, Boolean) this is handled for you.

ExceptionCondition
Microsoft.Health..::..HealthServiceException If HealthVault returns an error when getting information about the person in the authToken.
Show: