Skip to content

Commit

Permalink
2004-08-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Browse files Browse the repository at this point in the history
	* FormsAuthentication.cs: patch by Jim Pease to fix the date on renewal.

svn path=/branches/mono-1-0/mcs/; revision=32709
  • Loading branch information
gonzalop committed Aug 23, 2004
1 parent a76eee5 commit b8d491f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions 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
Expand Down
Expand Up @@ -311,7 +311,7 @@ public static FormsAuthenticationTicket RenewTicketIfOld (FormsAuthenticationTic
return tOld;

FormsAuthenticationTicket tNew = tOld.Clone ();
tNew.SetDates (now, now - toExpiration + toIssue);
tNew.SetDates (now, now + (tOld.Expiration - tOld.IssueDate));
return tNew;
}

Expand Down

0 comments on commit b8d491f

Please sign in to comment.