diff options
author | Gonzalo Paniagua Javier <gonzalo.mono@gmail.com> | 2004-08-23 20:07:21 +0400 |
---|---|---|
committer | Gonzalo Paniagua Javier <gonzalo.mono@gmail.com> | 2004-08-23 20:07:21 +0400 |
commit | d5a52eb6297ef476c58217dafbc5f031b18d1df7 (patch) | |
tree | 10a6b3ea04048c756aa7c4ca90a44a8cb62ec0dd /mcs/class/System.Web | |
parent | 20fc04be1ff2be93109cf89e66cfe49e5387f416 (diff) |
2004-08-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* FormsAuthentication.cs: patch by Jim Pease to fix the date on renewal.
svn path=/trunk/mcs/; revision=32708
Diffstat (limited to 'mcs/class/System.Web')
-rw-r--r-- | mcs/class/System.Web/System.Web.Security/ChangeLog | 5 | ||||
-rw-r--r-- | mcs/class/System.Web/System.Web.Security/FormsAuthentication.cs | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/mcs/class/System.Web/System.Web.Security/ChangeLog b/mcs/class/System.Web/System.Web.Security/ChangeLog index 3405ba9a1c1..73d0df19764 100644 --- a/mcs/class/System.Web/System.Web.Security/ChangeLog +++ b/mcs/class/System.Web/System.Web.Security/ChangeLog @@ -1,3 +1,8 @@ + +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; } |