Author: gonzalo
Date: 2006-06-15 16:58:55 -0400 (Thu, 15 Jun 2006)
New Revision: 61774
Modified:
trunk/mcs/class/System.Web/System.Web.SessionState/ChangeLog
trunk/mcs/class/System.Web/System.Web.SessionState/SessionId.cs
Log:
2006-06-15 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
* SessionId.cs: make the length of the SessionID 24, as MS.
Modified: trunk/mcs/class/System.Web/System.Web.SessionState/ChangeLog
===================================================================
--- trunk/mcs/class/System.Web/System.Web.SessionState/ChangeLog
2006-06-15 20:22:28 UTC (rev 61773)
+++ trunk/mcs/class/System.Web/System.Web.SessionState/ChangeLog
2006-06-15 20:58:55 UTC (rev 61774)
@@ -1,3 +1,7 @@
+2006-06-15 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
+
+ * SessionId.cs: make the length of the SessionID 24, as MS.
+
2006-04-19 Sebastien Pouliot <[EMAIL PROTECTED]>
* SessionConfig.cs: Avoid a cast.
Modified: trunk/mcs/class/System.Web/System.Web.SessionState/SessionId.cs
===================================================================
--- trunk/mcs/class/System.Web/System.Web.SessionState/SessionId.cs
2006-06-15 20:22:28 UTC (rev 61773)
+++ trunk/mcs/class/System.Web/System.Web.SessionState/SessionId.cs
2006-06-15 20:58:55 UTC (rev 61774)
@@ -37,8 +37,8 @@
'6', '7', '8', '9', 'A', 'B',
'C', 'D', 'E', 'F' };
- internal const int IdLength = 30;
- private const int half_len = 15;
+ internal const int IdLength = 24;
+ private const int half_len = IdLength / 2;
internal static string Create (RandomNumberGenerator rng)
{
@@ -58,7 +58,7 @@
if (key == null)
throw new ArgumentNullException ("key");
if (key.Length != half_len)
- throw new ArgumentException ("key must be 15
bytes long.");
+ throw new ArgumentException (String.Format
("key must be {0} bytes long.", half_len));
// Just a standard hex conversion
char[] res = new char [IdLength];
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches