Permalink
Browse files

Merge pull request #6 from yojimbo87/master

GetSession authcookie fix
  • Loading branch information...
soitgoes committed Jul 5, 2011
2 parents c8e4be0 + dca73b5 commit effbc9864946717eb8ec7e427fa94fc85bc09282
Showing with 5 additions and 5 deletions.
  1. +5 −5 LoveSeat/Support/CouchBase.cs
@@ -34,10 +34,10 @@ public static bool Authenticate(string baseUri, string userName, string password
protected Cookie GetSession()
{
- var cookie = cookiestore["authcookie"];
+ var authCookie = cookiestore["authcookie"];
- if (cookie != null)
- return cookie;
+ if (authCookie != null)
+ return authCookie;
if (string.IsNullOrEmpty(username)) return null;
var request = new CouchRequest(baseUri + "_session");
@@ -50,11 +50,11 @@ protected Cookie GetSession()
if (header != null)
{
var parts = header.Split(';')[0].Split('=');
- var authCookie = new Cookie(parts[0], parts[1]);
+ authCookie = new Cookie(parts[0], parts[1]);
authCookie.Domain = response.Server;
cookiestore.Add("authcookie", authCookie, TimeSpan.FromMinutes(9));
}
- return cookie;
+ return authCookie;
}
protected CouchRequest GetRequest(string uri)
{

0 comments on commit effbc98

Please sign in to comment.