RefreshAndSavePersonInfoToCookie Method (HttpContext, PersonInfo)

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

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,
	PersonInfo personInfo
)

Parameters

context
Type: System.Web..::..HttpContext
The current request context.
personInfo
Type: Microsoft.Health..::..PersonInfo
The information about the authenticated person that needs refreshing.

This method should be called anytime an action occurs that will affect the PersonInfo object for the authenticated person. This includes changing the person's authorization for the application or changing the selected record.

ExceptionCondition
System..::..InvalidOperationException If a person isn't logged on when this is called.
Show: