summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenAuth.OAuth2.Client/OAuth2
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2012-12-26 10:16:19 -0800
committerAndrew Arnott <andrewarnott@gmail.com>2012-12-26 10:16:19 -0800
commit449d42cacde7950ec15ed390d4a76263585c071d (patch)
treee5a0261894b5983f33efa10c4c6f5581a998a6b6 /src/DotNetOpenAuth.OAuth2.Client/OAuth2
parent9b1c78a3935a56ecebb142b023384943506e036f (diff)
downloadDotNetOpenAuth-449d42cacde7950ec15ed390d4a76263585c071d.zip
DotNetOpenAuth-449d42cacde7950ec15ed390d4a76263585c071d.tar.gz
DotNetOpenAuth-449d42cacde7950ec15ed390d4a76263585c071d.tar.bz2
Switches to session cookies.
Diffstat (limited to 'src/DotNetOpenAuth.OAuth2.Client/OAuth2')
-rw-r--r--src/DotNetOpenAuth.OAuth2.Client/OAuth2/WebServerClient.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/DotNetOpenAuth.OAuth2.Client/OAuth2/WebServerClient.cs b/src/DotNetOpenAuth.OAuth2.Client/OAuth2/WebServerClient.cs
index 1fdd372..879e4e3 100644
--- a/src/DotNetOpenAuth.OAuth2.Client/OAuth2/WebServerClient.cs
+++ b/src/DotNetOpenAuth.OAuth2.Client/OAuth2/WebServerClient.cs
@@ -117,7 +117,7 @@ namespace DotNetOpenAuth.OAuth2 {
cookie = new HttpCookie(XsrfCookieName, xsrfKey) {
HttpOnly = true,
Secure = FormsAuthentication.RequireSSL,
- Expires = DateTime.Now.Add(OAuth2ClientSection.Configuration.MaxAuthorizationTime),
+ ////Expires = DateTime.Now.Add(OAuth2ClientSection.Configuration.MaxAuthorizationTime), // we prefer session cookies to persistent ones
};
request.ClientState = xsrfKey;
}