diff options
Diffstat (limited to 'samples/RelyingPartyPortal/Code/State.cs')
-rw-r--r-- | samples/RelyingPartyPortal/Code/State.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/samples/RelyingPartyPortal/Code/State.cs b/samples/RelyingPartyPortal/Code/State.cs index 642780c..234c7ac 100644 --- a/samples/RelyingPartyPortal/Code/State.cs +++ b/samples/RelyingPartyPortal/Code/State.cs @@ -5,8 +5,16 @@ using DotNetOpenId.Extensions.SimpleRegistration; /// Strong-typed bag of session state.
/// </summary>
public class State {
+ public static void Clear() {
+ ProfileFields = null;
+ FriendlyLoginName = null;
+ }
public static ClaimsResponse ProfileFields {
get { return HttpContext.Current.Session["ProfileFields"] as ClaimsResponse; }
set { HttpContext.Current.Session["ProfileFields"] = value; }
}
+ public static string FriendlyLoginName {
+ get { return HttpContext.Current.Session["FriendlyUsername"] as string; }
+ set { HttpContext.Current.Session["FriendlyUsername"] = value; }
+ }
}
|