Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/mcs
diff options
context:
space:
mode:
authorGonzalo Paniagua Javier <gonzalo.mono@gmail.com>2004-08-23 20:08:23 +0400
committerGonzalo Paniagua Javier <gonzalo.mono@gmail.com>2004-08-23 20:08:23 +0400
commitb8d491f37931884c54b72fe6b0e22c4323d4bb4f (patch)
tree9f275c827ffb9e6ce4f488850523bff4679b827f /mcs
parenta76eee5c6b735bae6d61f1925755ce8a1a1f82bc (diff)
2004-08-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* FormsAuthentication.cs: patch by Jim Pease to fix the date on renewal. svn path=/branches/mono-1-0/mcs/; revision=32709
Diffstat (limited to 'mcs')
-rw-r--r--mcs/class/System.Web/System.Web.Security/ChangeLog4
-rw-r--r--mcs/class/System.Web/System.Web.Security/FormsAuthentication.cs2
2 files changed, 5 insertions, 1 deletions
diff --git a/mcs/class/System.Web/System.Web.Security/ChangeLog b/mcs/class/System.Web/System.Web.Security/ChangeLog
index 18d1dade663..17865abd5bc 100644
--- a/mcs/class/System.Web/System.Web.Security/ChangeLog
+++ b/mcs/class/System.Web/System.Web.Security/ChangeLog
@@ -1,3 +1,7 @@
+2004-08-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+ * FormsAuthentication.cs: patch by Jim Pease to fix the date on renewal.
+
2004-08-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* FormsAuthenticationModule.cs: don't renew expired cookies. Only renew
diff --git a/mcs/class/System.Web/System.Web.Security/FormsAuthentication.cs b/mcs/class/System.Web/System.Web.Security/FormsAuthentication.cs
index bee8998e76a..451cb0dc260 100644
--- a/mcs/class/System.Web/System.Web.Security/FormsAuthentication.cs
+++ b/mcs/class/System.Web/System.Web.Security/FormsAuthentication.cs
@@ -311,7 +311,7 @@ namespace System.Web.Security
return tOld;
FormsAuthenticationTicket tNew = tOld.Clone ();
- tNew.SetDates (now, now - toExpiration + toIssue);
+ tNew.SetDates (now, now + (tOld.Expiration - tOld.IssueDate));
return tNew;
}