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
diff options
context:
space:
mode:
Diffstat (limited to 'mcs/class/System.Web/System.Web.Security')
-rw-r--r--mcs/class/System.Web/System.Web.Security/ChangeLog9
-rw-r--r--mcs/class/System.Web/System.Web.Security/FormsAuthentication.cs2
-rw-r--r--mcs/class/System.Web/System.Web.Security/FormsAuthenticationModule.cs7
3 files changed, 2 insertions, 16 deletions
diff --git a/mcs/class/System.Web/System.Web.Security/ChangeLog b/mcs/class/System.Web/System.Web.Security/ChangeLog
index 17865abd5bc..cf7612e3ae3 100644
--- a/mcs/class/System.Web/System.Web.Security/ChangeLog
+++ b/mcs/class/System.Web/System.Web.Security/ChangeLog
@@ -1,12 +1,3 @@
-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
- the cookie if SlidingExpiration is set. Thanks to Jim Pease.
-
2004-06-12 Pedro Martínez Juliá <yoros@wanadoo.es>
* FormsAuthentication.cs: Undo last change.
diff --git a/mcs/class/System.Web/System.Web.Security/FormsAuthentication.cs b/mcs/class/System.Web/System.Web.Security/FormsAuthentication.cs
index 451cb0dc260..bee8998e76a 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 + (tOld.Expiration - tOld.IssueDate));
+ tNew.SetDates (now, now - toExpiration + toIssue);
return tNew;
}
diff --git a/mcs/class/System.Web/System.Web.Security/FormsAuthenticationModule.cs b/mcs/class/System.Web/System.Web.Security/FormsAuthenticationModule.cs
index ac9f3c31327..f46923ad5b8 100644
--- a/mcs/class/System.Web/System.Web.Security/FormsAuthenticationModule.cs
+++ b/mcs/class/System.Web/System.Web.Security/FormsAuthenticationModule.cs
@@ -82,12 +82,7 @@ namespace System.Web.Security
return;
FormsAuthenticationTicket ticket = FormsAuthentication.Decrypt (cookie.Value);
- if (ticket == null || ticket.Expired)
- return;
-
- if (config.SlidingExpiration)
- ticket = FormsAuthentication.RenewTicketIfOld (ticket);
-
+ ticket = FormsAuthentication.RenewTicketIfOld (ticket);
context.User = new GenericPrincipal (new FormsIdentity (ticket), new string [0]);
cookie.Value = FormsAuthentication.Encrypt (ticket);