Author: gonzalo
Date: 2005-03-11 01:03:53 -0500 (Fri, 11 Mar 2005)
New Revision: 41676

Modified:
   branches/mono-1-0/mcs/class/System.Web/System.Web.Security/ChangeLog
   
branches/mono-1-0/mcs/class/System.Web/System.Web.Security/FormsAuthenticationModule.cs
Log:
2005-03-11 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>

        * FormsAuthenticationModule.cs: fix for bug 73545, which caused
        authentication not to work when the cookie was not persistent.
        Patch by Ilya Kharmatsky (Mainsoft).



Modified: branches/mono-1-0/mcs/class/System.Web/System.Web.Security/ChangeLog
===================================================================
--- branches/mono-1-0/mcs/class/System.Web/System.Web.Security/ChangeLog        
2005-03-11 06:02:22 UTC (rev 41675)
+++ branches/mono-1-0/mcs/class/System.Web/System.Web.Security/ChangeLog        
2005-03-11 06:03:53 UTC (rev 41676)
@@ -1,3 +1,9 @@
+2005-03-11 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
+
+       * FormsAuthenticationModule.cs: fix for bug 73545, which caused
+       authentication not to work when the cookie was not persistent.
+       Patch by Ilya Kharmatsky (Mainsoft).
+
 2005-02-23 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
 
        * FormsAuthentication.cs: make the string to be stored in a config.

Modified: 
branches/mono-1-0/mcs/class/System.Web/System.Web.Security/FormsAuthenticationModule.cs
===================================================================
--- 
branches/mono-1-0/mcs/class/System.Web/System.Web.Security/FormsAuthenticationModule.cs
     2005-03-11 06:02:22 UTC (rev 41675)
+++ 
branches/mono-1-0/mcs/class/System.Web/System.Web.Security/FormsAuthenticationModule.cs
     2005-03-11 06:03:53 UTC (rev 41676)
@@ -82,7 +82,7 @@
                                return;
 
                        FormsAuthenticationTicket ticket = 
FormsAuthentication.Decrypt (cookie.Value);
-                       if (ticket == null || ticket.Expired)
+                       if (ticket == null || (ticket.IsPersistent && 
ticket.Expired))
                                return;
 
                        if (config.SlidingExpiration)

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to