4. How
Define a class which implements IPrinicpal interface
Save custom settings to Cookie
Restore custom settings on every request
Replace User object on PostAuthenticateRequest event
7. Implementation
Replace @(User as CustomPrincipal).MemberID With @(User.MemberID)
public abstract class CustomWebViewPage : WebViewPage
public abstract class CustomWebViewPage<TModel> : WebViewPage<TModel>
Views/Web.config
<pages pageBaseType="CustomWebViewPage">