void EnsureGoodId (string id, bool throwOnNull)
{
if (id == null)
if (throwOnNull)
throw new HttpException ("Session ID is invalid");
else
return;
if (id.Length > SessionIDManager.SessionIDMaxLength)
throw new HttpException ("Session ID too long");
}