diff --git a/Builder/IISMainHandler/build.txt b/Builder/IISMainHandler/build.txt index 5cb222c..8e3d0d8 100644 --- a/Builder/IISMainHandler/build.txt +++ b/Builder/IISMainHandler/build.txt @@ -1 +1 @@ -659 \ No newline at end of file +663 \ No newline at end of file diff --git a/Builder/IISUploadHandler/build.txt b/Builder/IISUploadHandler/build.txt index c0db21d..43f9cb6 100644 --- a/Builder/IISUploadHandler/build.txt +++ b/Builder/IISUploadHandler/build.txt @@ -1 +1 @@ -392 \ No newline at end of file +396 \ No newline at end of file diff --git a/IISMainHandler/WebContext.cs b/IISMainHandler/WebContext.cs index 7e078eb..39ce8bb 100644 --- a/IISMainHandler/WebContext.cs +++ b/IISMainHandler/WebContext.cs @@ -91,10 +91,12 @@ namespace FLocal.IISHandler { HttpCookie sessionCookie = this.httprequest.Cookies["session"]; if(sessionCookie != null && sessionCookie.Value != null && sessionCookie.Value != "") { try { - this.session = Session.LoadByKey(sessionCookie.Value); + var session = Session.LoadByKey(sessionCookie.Value); + var tmp = session.account; sessionCookie.Expires = DateTime.Now.AddDays(3); - this.session.updateLastActivity(); + session.updateLastActivity(); this.httpresponse.AppendCookie(sessionCookie); + this.session = session; } catch(NotFoundInDBException) { sessionCookie.Value = ""; sessionCookie.Expires = DateTime.Now.AddDays(-1);