diff options
author | Gonzalo Paniagua Javier <gonzalo.mono@gmail.com> | 2004-08-23 20:08:23 +0400 |
---|---|---|
committer | Gonzalo Paniagua Javier <gonzalo.mono@gmail.com> | 2004-08-23 20:08:23 +0400 |
commit | b8d491f37931884c54b72fe6b0e22c4323d4bb4f (patch) | |
tree | 9f275c827ffb9e6ce4f488850523bff4679b827f /mcs/class/System.Web | |
parent | a76eee5c6b735bae6d61f1925755ce8a1a1f82bc (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/class/System.Web')
-rw-r--r-- | mcs/class/System.Web/System.Web.Security/ChangeLog | 4 | ||||
-rw-r--r-- | mcs/class/System.Web/System.Web.Security/FormsAuthentication.cs | 2 |
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; } |